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.001843/0.001843, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002165/0.002165, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001857, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2896, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01446/0.3041, allocations: 11.39 MB / 420.1 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008845/0.313, allocations: 3.865 MB / 424 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002035/0.3151, allocations: 35.88 kB / 424 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009062/0.3242, allocations: 8.147 MB / 432.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008218/0.3325, allocations: 4.706 MB / 436.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.3353, allocations: 0.9205 MB / 437.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008031/0.3433, allocations: 5.42 MB / 443.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001871/0.3452, allocations: 0.8947 MB / 444.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004712/0.35, allocations: 2.899 MB / 447 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007015/0.357, allocations: 5.166 MB / 452.2 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.3581, allocations: 356 kB / 452.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.3592, allocations: 400 kB / 452.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001683/0.3609, allocations: 1.892 MB / 454.8 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003151/0.3641, allocations: 2.842 MB / 457.7 MB, free: 456 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008655/0.3727, allocations: 7.43 MB / 465.1 MB, free: 8.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.3728, allocations: 4 kB / 465.1 MB, free: 8.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3728, allocations: 0 / 465.1 MB, free: 8.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002461/0.373, allocations: 0 / 465.1 MB, free: 8.977 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.01538/0.3884, allocations: 8.039 MB / 473.1 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.3885, allocations: 11.97 kB / 473.2 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005179/0.389, allocations: 291.7 kB / 473.4 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001956/0.391, allocations: 0.948 MB / 474.4 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005401/0.3964, allocations: 3.313 MB / 477.7 MB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.3966, allocations: 156.2 kB / 477.9 MB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003717/0.397, allocations: 208 kB / 478.1 MB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004193/0.4012, allocations: 2.1 MB / 480.2 MB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.363e-05/0.4013, allocations: 7.953 kB / 480.2 MB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/0.4015, allocations: 84 kB / 480.2 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/0.4015, allocations: 52 kB / 480.3 MB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003753/0.4053, allocations: 1.845 MB / 482.1 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01771/0.423, allocations: 8.982 MB / 491.1 MB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004395/0.4274, allocations: 2.318 MB / 493.4 MB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002851/0.4303, allocations: 1.381 MB / 494.8 MB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001408/0.4305, allocations: 46.27 kB / 494.9 MB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00221/0.4327, allocations: 1.128 MB / 496 MB, free: 9.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.889e-06/0.4327, allocations: 0 / 496 MB, free: 9.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06995/0.5027, allocations: 22.85 MB / 0.5067 GB, free: 2.344 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03232/0.535, allocations: 13.72 MB / 0.5201 GB, free: 4.238 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02056/0.5556, allocations: 15.03 MB / 0.5348 GB, free: 5.203 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007176/0.5564, allocations: 89.7 kB / 0.5349 GB, free: 5.109 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004329/0.5608, allocations: 3.798 MB / 0.5386 GB, free: 1.305 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001988/0.5628, allocations: 1.278 MB / 0.5398 GB, free: 16 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2044/0.7672, allocations: 0.5224 MB / 0.5403 GB, free: 120.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.7673, allocations: 302.2 kB / 0.5406 GB, free: 120.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.7702, allocations: 1.225 MB / 0.5418 GB, free: 120.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/0.7728, allocations: 1.608 MB / 0.5434 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004282/0.7771, allocations: 2.973 MB / 0.5463 GB, free: 119.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.413e-06/0.7772, allocations: 0.8125 kB / 0.5463 GB, free: 119.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01069/0.7879, allocations: 5.247 MB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.7879, allocations: 7.719 kB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.788, allocations: 7.625 kB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005185/0.7931, allocations: 1.409 MB / 0.5528 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/0.7959, allocations: 0.5252 MB / 0.5533 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02367/0.8196, allocations: 24.05 MB / 0.5768 GB, free: 95.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/0.8231, allocations: 117.8 kB / 0.5769 GB, free: 95.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/0.8234, allocations: 115.1 kB / 0.577 GB, free: 95.2 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.002764/0.8262, allocations: 2.193 MB / 0.5792 GB, free: 93.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008615/0.827, allocations: 0.8886 MB / 0.58 GB, free: 92.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009652/0.8367, allocations: 5.194 MB / 0.5851 GB, free: 87.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/0.8368, allocations: 43.92 kB / 0.5851 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.8368, allocations: 8 kB / 0.5851 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.129e-05/0.8368, allocations: 15.94 kB / 0.5852 GB, free: 87.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01716/0.854, allocations: 11.09 MB / 0.596 GB, free: 76.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.854, allocations: 4 kB / 0.596 GB, free: 76.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002307/0.8564, allocations: 447.4 kB / 0.5964 GB, free: 75.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005069/0.8614, allocations: 1.345 MB / 0.5977 GB, free: 74.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003326/0.8618, allocations: 75.97 kB / 0.5978 GB, free: 74.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/0.882, allocations: 21.94 MB / 0.6192 GB, free: 51.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02218/0.9042, allocations: 12.04 MB / 0.631 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/0.9164, allocations: 6.945 MB / 0.6378 GB, free: 31.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/0.9177, allocations: 0.8116 MB / 0.6386 GB, free: 30.85 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007293/0.9185, allocations: 71.98 kB / 0.6386 GB, free: 30.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/0.9206, allocations: 95.95 kB / 0.6387 GB, free: 30.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006544/0.9213, allocations: 267.4 kB / 0.639 GB, free: 30.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/0.9215, allocations: 99.97 kB / 0.6391 GB, free: 30.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009601/0.9311, allocations: 11.22 MB / 0.65 GB, free: 19.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.52e-07/0.9311, allocations: 4 kB / 0.65 GB, free: 19.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004406/0.9355, 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.01353/0.9491, allocations: 7.914 MB / 0.6588 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006843/0.9559, allocations: 4.774 MB / 0.6635 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.956, allocations: 0.625 kB / 0.6635 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004059/0.9601, allocations: 3.28 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.003206/0.9633, allocations: 0.5745 MB / 0.6673 GB, free: 1.305 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1091/1.072, allocations: 56.4 MB / 0.7223 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005499/1.078, allocations: 4.046 MB / 0.7263 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001948/1.08, allocations: 317.5 kB / 0.7266 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004297/1.084, allocations: 3.28 MB / 0.7298 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of SimCode: time 3.076e-06/1.084, allocations: 0 / 0.7298 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.559/1.643, allocations: 144.4 MB / 0.8708 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.28/92.92, allocations: 1.859 kB / 0.8708 GB, free: 76.8 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.1.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