Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 104.8 kB / 17.06 MB, free: 5.785 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.001262/0.001262, allocations: 195 kB / 18 MB, free: 4.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 43.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3013, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01373/0.3151, allocations: 11.09 MB / 411.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008583/0.3237, allocations: 3.639 MB / 415 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002447/0.3262, allocations: 39.88 kB / 415 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008406/0.3346, allocations: 8.132 MB / 423.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007058/0.3418, allocations: 4.644 MB / 427.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00289/0.3447, allocations: 0.9633 MB / 428.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007225/0.3519, allocations: 5.307 MB / 434.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.3538, allocations: 0.8982 MB / 434.9 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004617/0.3584, allocations: 2.864 MB / 437.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006511/0.3649, allocations: 5.123 MB / 442.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001274/0.3662, allocations: 348 kB / 443.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001429/0.3677, allocations: 396 kB / 443.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001887/0.3696, allocations: 1.865 MB / 445.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003773/0.3733, allocations: 2.792 MB / 448.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009039/0.3824, allocations: 7.29 MB / 455.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3824, allocations: 0 / 455.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3824, allocations: 0 / 455.6 MB, free: 1.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002698/0.3827, allocations: 0 / 455.6 MB, free: 1.207 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01487/0.3976, allocations: 7.942 MB / 463.6 MB, free: 9.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3976, allocations: 8.031 kB / 463.6 MB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003588/0.398, allocations: 287.6 kB / 463.8 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.3991, allocations: 0.8934 MB / 464.7 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00429/0.4034, allocations: 3.254 MB / 468 MB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.4036, allocations: 156.5 kB / 468.1 MB, free: 4.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002956/0.4039, allocations: 211.9 kB / 468.3 MB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003776/0.4076, allocations: 2.108 MB / 470.5 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.958e-05/0.4077, allocations: 8 kB / 470.5 MB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.4079, allocations: 83.98 kB / 470.5 MB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-05/0.4079, allocations: 52 kB / 470.6 MB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003758/0.4117, allocations: 1.895 MB / 472.5 MB, free: 56 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01442/0.4261, allocations: 8.909 MB / 481.4 MB, free: 6.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/0.43, allocations: 2.325 MB / 483.7 MB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002735/0.4328, allocations: 1.412 MB / 485.1 MB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.4329, allocations: 38.28 kB / 485.2 MB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002126/0.4351, allocations: 1.156 MB / 486.3 MB, free: 1.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 4.839e-06/0.4351, allocations: 0 / 486.3 MB, free: 1.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.06419/0.4993, allocations: 23.23 MB / 0.4976 GB, free: 10.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02789/0.5272, allocations: 13.62 MB / 0.5109 GB, free: 12.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01626/0.5435, allocations: 14.88 MB / 0.5255 GB, free: 13.54 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005919/0.5441, allocations: 89.69 kB / 0.5255 GB, free: 13.45 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003616/0.5478, allocations: 3.751 MB / 0.5292 GB, free: 9.688 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00171/0.5495, allocations: 1.27 MB / 0.5304 GB, free: 8.406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/0.5505, allocations: 0.5118 MB / 0.5309 GB, free: 7.887 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5506, allocations: 305.1 kB / 0.5312 GB, free: 7.586 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002481/0.5531, allocations: 1.252 MB / 0.5325 GB, free: 6.332 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/0.5559, allocations: 1.63 MB / 0.534 GB, free: 4.621 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005128/0.561, allocations: 2.988 MB / 0.537 GB, free: 1.562 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.561, allocations: 7.938 kB / 0.537 GB, free: 1.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2256/0.7866, allocations: 5.242 MB / 0.5421 GB, free: 126.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.7867, allocations: 10.28 kB / 0.5421 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.7867, allocations: 3.938 kB / 0.5421 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004804/0.7916, allocations: 1.393 MB / 0.5435 GB, free: 126.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002435/0.794, allocations: 0.5386 MB / 0.544 GB, free: 126.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02258/0.8166, allocations: 23.97 MB / 0.5674 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003174/0.8198, allocations: 138.5 kB / 0.5675 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002836/0.8201, allocations: 111.6 kB / 0.5676 GB, free: 109.5 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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.002492/0.8226, allocations: 2.191 MB / 0.5698 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007867/0.8234, allocations: 0.8587 MB / 0.5706 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009122/0.8325, allocations: 5.218 MB / 0.5757 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/0.8326, allocations: 36.94 kB / 0.5758 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.8326, allocations: 8 kB / 0.5758 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/0.8326, allocations: 15.94 kB / 0.5758 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/0.8487, allocations: 11.05 MB / 0.5866 GB, free: 90.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/0.8488, allocations: 4 kB / 0.5866 GB, free: 90.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/0.8509, allocations: 463.4 kB / 0.587 GB, free: 90.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004569/0.8555, allocations: 1.334 MB / 0.5883 GB, free: 88.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.8557, allocations: 79.91 kB / 0.5884 GB, free: 88.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01951/0.8753, allocations: 21.88 MB / 0.6098 GB, free: 65.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0212/0.8965, allocations: 11.93 MB / 0.6214 GB, free: 53.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/0.9084, allocations: 6.995 MB / 0.6282 GB, free: 46.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/0.9101, allocations: 0.798 MB / 0.629 GB, free: 45.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005412/0.9107, allocations: 64 kB / 0.6291 GB, free: 45.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001998/0.9127, allocations: 115.9 kB / 0.6292 GB, free: 45.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006297/0.9133, allocations: 267.3 kB / 0.6294 GB, free: 45.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.9135, allocations: 95.97 kB / 0.6295 GB, free: 45.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.008619/0.9221, allocations: 11.12 MB / 0.6404 GB, free: 33.95 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9221, allocations: 0 / 0.6404 GB, free: 33.95 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00367/0.9258, allocations: 1.08 MB / 0.6415 GB, free: 32.87 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 (253): * Single equations (assignments): 242 * 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.01244/0.9382, allocations: 7.975 MB / 0.6492 GB, free: 24.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00709/0.9454, allocations: 4.815 MB / 0.6539 GB, free: 20.03 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.9454, allocations: 0 / 0.6539 GB, free: 20.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004232/0.9496, allocations: 3.305 MB / 0.6572 GB, free: 16.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/0.9528, allocations: 0.562 MB / 0.6577 GB, free: 16.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08821/1.041, allocations: 55.93 MB / 0.7123 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004611/1.046, allocations: 4.014 MB / 0.7163 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001801/1.047, allocations: 304.9 kB / 0.7165 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003633/1.051, allocations: 3.221 MB / 0.7197 GB, free: 136 kB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/1.051, allocations: 0 / 0.7197 GB, free: 136 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5271/1.578, allocations: 142.2 MB / 0.8586 GB, free: 69.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 87.8/89.38, allocations: 12.45 kB / 0.8586 GB, free: 69.26 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches