Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 104.1 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002348/0.002347, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.476/2.476, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 52.14 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1415, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.01338/0.1549, allocations: 6.441 MB / 333.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008396/0.1634, allocations: 2.578 MB / 336.4 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.1652, allocations: 27.94 kB / 336.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005404/0.1707, allocations: 1.271 MB / 337.7 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003991/0.1747, allocations: 0.7146 MB / 338.4 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004179/0.1789, allocations: 1.105 MB / 339.5 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002856/0.1818, allocations: 1.094 MB / 340.6 MB, free: 7.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.1844, allocations: 0.9111 MB / 341.5 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.1856, allocations: 442.4 kB / 342 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.1872, allocations: 0.5602 MB / 342.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004565/0.1876, allocations: 96 kB / 342.6 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.1895, allocations: 411.6 kB / 343 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.19, allocations: 235.1 kB / 343.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.1913, allocations: 0.5325 MB / 343.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003858/0.1952, allocations: 1.499 MB / 345.3 MB, free: 2.375 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1952, allocations: 8 kB / 345.3 MB, free: 2.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1952, allocations: 0 / 345.3 MB, free: 2.367 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.224e-05/0.1953, allocations: 0 / 345.3 MB, free: 2.367 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.009015/0.2043, allocations: 1.655 MB / 346.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.706e-05/0.2044, allocations: 12.02 kB / 347 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006791/0.2051, allocations: 171.8 kB / 347.1 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008154/0.2133, allocations: 0.5772 MB / 347.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.2152, allocations: 0.4901 MB / 348.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.2154, allocations: 82.3 kB / 348.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005662/0.216, allocations: 119.9 kB / 348.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003998/0.22, allocations: 1.011 MB / 349.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.956e-05/0.2201, allocations: 4 kB / 349.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001974/0.2203, allocations: 55.94 kB / 349.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.123e-05/0.2204, allocations: 28 kB / 349.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003575/0.224, allocations: 1.024 MB / 350.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.2346, allocations: 3.883 MB / 354.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003671/0.2383, allocations: 2.06 MB / 356.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.2397, allocations: 447.5 kB / 356.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001822/0.2399, allocations: 106 kB / 357 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001411/0.2413, allocations: 482.8 kB / 357.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 5.229e-06/0.2414, allocations: 0 / 357.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.01608/0.2575, allocations: 4.014 MB / 361.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.2576, allocations: 145.5 kB / 361.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008851/0.2586, allocations: 417.7 kB / 362 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.2587, allocations: 49.7 kB / 362.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005058/0.2592, allocations: 439.5 kB / 362.5 MB, free: 296 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005992/0.2599, allocations: 437.9 kB / 362.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005614/0.2604, allocations: 210.9 kB / 363.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000229/0.2607, allocations: 386.6 kB / 363.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.2621, allocations: 362.5 kB / 363.9 MB, free: 14.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.2637, allocations: 0.5877 MB / 364.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003008/0.2667, allocations: 1.001 MB / 365.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/0.2668, allocations: 0 / 365.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004853/0.2716, allocations: 1.437 MB / 366.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.2717, allocations: 8 kB / 366.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.2717, allocations: 4 kB / 366.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.2734, allocations: 358.9 kB / 367.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.275, allocations: 215.7 kB / 367.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/0.2885, allocations: 8.492 MB / 376 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.2901, allocations: 43.98 kB / 376 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002511/0.2904, allocations: 48 kB / 376 MB, free: 1.973 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009116/0.2913, allocations: 273.6 kB / 376.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.2916, allocations: 75.06 kB / 376.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004579/0.2962, allocations: 1.329 MB / 377.7 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.571e-05/0.2963, allocations: 15.94 kB / 377.7 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.428e-05/0.2963, allocations: 8 kB / 377.7 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/0.2963, allocations: 7.969 kB / 377.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2778/0.5742, allocations: 2.553 MB / 380.3 MB, free: 51.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-05/0.5743, allocations: 2.094 kB / 380.3 MB, free: 51.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.5757, allocations: 158 kB / 380.5 MB, free: 51.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/0.5774, allocations: 333.9 kB / 380.8 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.5775, allocations: 32.25 kB / 380.8 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.589, allocations: 8.112 MB / 388.9 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.589, allocations: 6.219 kB / 388.9 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006334/0.5954, allocations: 1.844 MB / 390.8 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000756/0.5962, allocations: 224.4 kB / 391 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.5965, allocations: 23.23 kB / 391 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.5976, allocations: 38.77 kB / 391.1 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003918/0.598, allocations: 104.2 kB / 391.2 MB, free: 43.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5981, allocations: 36.97 kB / 391.2 MB, free: 43.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006034/0.5988, allocations: 278.5 kB / 391.5 MB, free: 43.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5988, allocations: 0 / 391.5 MB, free: 43.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002545/0.6013, allocations: 321.8 kB / 391.8 MB, free: 43.6 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006292/0.6076, allocations: 2.453 MB / 394.2 MB, free: 42.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005782/0.6135, allocations: 1.686 MB / 395.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/0.6135, allocations: 1.719 kB / 395.9 MB, free: 41.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002739/0.6163, allocations: 1.148 MB / 397.1 MB, free: 40.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.6176, allocations: 80.86 kB / 397.1 MB, free: 40.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.6374, allocations: 7.745 MB / 404.9 MB, free: 35.94 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008087/0.6383, allocations: 1.035 MB / 405.9 MB, free: 35.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001067/0.6394, allocations: 104.2 kB / 406 MB, free: 35.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/0.6401, allocations: 358 kB / 406.4 MB, free: 34.91 MB / 318.1 MB Notification: Performance of SimCode: time 1.833e-06/0.6401, allocations: 0 / 406.4 MB, free: 34.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07647/0.7166, allocations: 18.18 MB / 424.6 MB, free: 17.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.59/17.31, allocations: 4.562 kB / 424.6 MB, free: 17.68 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches