Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001269/0.001269, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001282, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3045, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01358/0.3181, allocations: 11.39 MB / 420.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.3282, allocations: 3.861 MB / 424 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.3317, allocations: 39.88 kB / 424 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008668/0.3404, allocations: 8.14 MB / 432.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006843/0.3473, allocations: 4.741 MB / 436.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.3498, allocations: 0.9244 MB / 437.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006928/0.3567, allocations: 5.405 MB / 443.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.3584, allocations: 0.9024 MB / 444.1 MB, free: 14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004873/0.3632, allocations: 2.911 MB / 447.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006391/0.3697, allocations: 5.162 MB / 452.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001196/0.3709, allocations: 360 kB / 452.6 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.3723, allocations: 400 kB / 453 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001933/0.3743, allocations: 1.888 MB / 454.8 MB, free: 3.258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004178/0.3785, allocations: 2.846 MB / 457.7 MB, free: 400 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.3901, allocations: 7.43 MB / 465.1 MB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3901, allocations: 0 / 465.1 MB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.3901, allocations: 4 kB / 465.1 MB, free: 8.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003104/0.3904, allocations: 0 / 465.1 MB, free: 8.926 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01699/0.4074, allocations: 8.035 MB / 473.2 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.4075, allocations: 15.95 kB / 473.2 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008753/0.4084, allocations: 287.7 kB / 473.5 MB, free: 484 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/0.4108, allocations: 0.9491 MB / 474.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005078/0.4159, allocations: 3.308 MB / 477.7 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.4161, allocations: 164.2 kB / 477.9 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003283/0.4164, allocations: 212 kB / 478.1 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003872/0.4203, allocations: 2.093 MB / 480.2 MB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.919e-05/0.4204, allocations: 4 kB / 480.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.4206, allocations: 91.92 kB / 480.3 MB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.4206, allocations: 52 kB / 480.3 MB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.4241, allocations: 1.848 MB / 482.2 MB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01501/0.4391, allocations: 8.979 MB / 491.1 MB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003954/0.4431, allocations: 2.317 MB / 493.5 MB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00271/0.4458, allocations: 1.384 MB / 494.8 MB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/0.446, allocations: 38.28 kB / 494.9 MB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002045/0.448, allocations: 1.14 MB / 496 MB, free: 9.438 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.348e-06/0.448, allocations: 0 / 496 MB, free: 9.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06781/0.5158, allocations: 22.85 MB / 0.5067 GB, free: 2.289 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03068/0.5466, allocations: 13.72 MB / 0.5201 GB, free: 4.184 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02054/0.5671, allocations: 15.04 MB / 0.5348 GB, free: 5.145 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006748/0.5679, allocations: 85.7 kB / 0.5349 GB, free: 5.055 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004219/0.5721, allocations: 3.798 MB / 0.5386 GB, free: 1.25 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2208/0.7929, allocations: 1.279 MB / 0.5398 GB, free: 120.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001459/0.7944, allocations: 0.5193 MB / 0.5403 GB, free: 120.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.101e-05/0.7945, allocations: 302.3 kB / 0.5406 GB, free: 120.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/0.7971, allocations: 1.23 MB / 0.5418 GB, free: 120.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002478/0.7996, allocations: 1.612 MB / 0.5434 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004417/0.804, allocations: 2.968 MB / 0.5463 GB, free: 120 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.804, allocations: 0.7812 kB / 0.5463 GB, free: 120 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01015/0.8142, allocations: 5.242 MB / 0.5514 GB, free: 118.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.8143, allocations: 11.28 kB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.8143, allocations: 7.719 kB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005064/0.8193, allocations: 1.408 MB / 0.5528 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/0.8219, allocations: 0.5284 MB / 0.5533 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0242/0.8461, allocations: 24.06 MB / 0.5768 GB, free: 95.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003432/0.8495, allocations: 117.7 kB / 0.5769 GB, free: 95.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005487/0.8501, allocations: 108 kB / 0.5771 GB, free: 95.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.003206/0.8533, allocations: 2.204 MB / 0.5792 GB, free: 93.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001407/0.8547, allocations: 0.8742 MB / 0.5801 GB, free: 92.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009913/0.8647, allocations: 5.204 MB / 0.5851 GB, free: 87.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.8647, allocations: 36 kB / 0.5852 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.8647, allocations: 4 kB / 0.5852 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.8648, allocations: 19.94 kB / 0.5852 GB, free: 87.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.8812, allocations: 11.09 MB / 0.596 GB, free: 76.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.8813, allocations: 0 / 0.596 GB, free: 76.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002077/0.8834, allocations: 455.5 kB / 0.5965 GB, free: 75.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004725/0.8881, allocations: 1.346 MB / 0.5978 GB, free: 74.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002313/0.8883, allocations: 79.92 kB / 0.5979 GB, free: 74.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/0.9078, allocations: 21.92 MB / 0.6193 GB, free: 51.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02108/0.9289, allocations: 12.03 MB / 0.631 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.9405, allocations: 6.95 MB / 0.6378 GB, free: 31.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/0.9424, allocations: 0.8116 MB / 0.6386 GB, free: 30.85 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006962/0.9431, allocations: 67.94 kB / 0.6387 GB, free: 30.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/0.9451, allocations: 95.95 kB / 0.6387 GB, free: 30.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006542/0.9457, allocations: 271.4 kB / 0.639 GB, free: 30.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/0.9459, allocations: 95.97 kB / 0.6391 GB, free: 30.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00955/0.9555, allocations: 11.22 MB / 0.6501 GB, free: 19.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.9555, allocations: 0 / 0.6501 GB, free: 19.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004232/0.9597, allocations: 1.096 MB / 0.6511 GB, free: 18.03 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01233/0.9721, allocations: 7.928 MB / 0.6589 GB, free: 10.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006551/0.9786, allocations: 4.767 MB / 0.6635 GB, free: 5.262 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.9787, allocations: 4.625 kB / 0.6635 GB, free: 5.258 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004162/0.9829, allocations: 3.272 MB / 0.6667 GB, free: 1.875 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/0.9863, allocations: 0.5814 MB / 0.6673 GB, free: 1.301 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09724/1.084, allocations: 56.39 MB / 0.7224 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005593/1.089, allocations: 4.05 MB / 0.7263 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002351/1.092, allocations: 317.5 kB / 0.7266 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00428/1.096, allocations: 3.28 MB / 0.7298 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of SimCode: time 9.32e-07/1.096, allocations: 3.938 kB / 0.7298 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4919/1.588, allocations: 144.4 MB / 0.8708 GB, free: 76.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 89.32/90.9, allocations: 9.797 kB / 0.8708 GB, free: 76.92 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches