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.001316/0.001316, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001279/0.001279, allocations: 193.4 kB / 18 MB, free: 5.074 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.283, allocations: 49.44 MB / 400.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0132/0.2962, allocations: 11.09 MB / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007616/0.3039, allocations: 3.643 MB / 415 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001885/0.3058, allocations: 39.88 kB / 415 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008285/0.3141, allocations: 8.144 MB / 423.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.321, allocations: 4.62 MB / 427.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.3237, allocations: 0.9498 MB / 428.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007478/0.3312, allocations: 5.311 MB / 434 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.3328, allocations: 0.8904 MB / 434.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00486/0.3377, allocations: 2.86 MB / 437.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006977/0.3447, allocations: 5.119 MB / 442.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008763/0.3456, allocations: 348 kB / 443.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001121/0.3467, allocations: 396 kB / 443.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001618/0.3484, allocations: 1.861 MB / 445.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003344/0.3517, allocations: 2.792 MB / 448.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008555/0.3603, allocations: 7.291 MB / 455.6 MB, free: 1.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3603, allocations: 0 / 455.6 MB, free: 1.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3603, allocations: 0 / 455.6 MB, free: 1.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002089/0.3605, allocations: 4 kB / 455.6 MB, free: 1.406 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.01336/0.3739, allocations: 7.945 MB / 463.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.374, allocations: 11.89 kB / 463.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004291/0.3744, allocations: 291.6 kB / 463.8 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.3758, allocations: 0.8895 MB / 464.7 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004654/0.3804, allocations: 3.254 MB / 468 MB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.3806, allocations: 156.5 kB / 468.1 MB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003285/0.3809, allocations: 211.9 kB / 468.3 MB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004197/0.3851, allocations: 2.108 MB / 470.4 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.403e-05/0.3852, allocations: 8 kB / 470.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/0.3854, allocations: 83.98 kB / 470.5 MB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.903e-05/0.3855, allocations: 52 kB / 470.6 MB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004064/0.3895, allocations: 1.903 MB / 472.5 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.4055, allocations: 8.901 MB / 481.4 MB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.4099, allocations: 2.325 MB / 483.7 MB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003133/0.4131, allocations: 1.412 MB / 485.1 MB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/0.4133, allocations: 42.28 kB / 485.1 MB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002357/0.4156, allocations: 1.156 MB / 486.3 MB, free: 2.086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 5.019e-06/0.4156, allocations: 0 / 486.3 MB, free: 2.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.07118/0.4868, allocations: 23.23 MB / 0.4976 GB, free: 10.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03132/0.5182, allocations: 13.6 MB / 0.5109 GB, free: 12.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02075/0.539, allocations: 14.9 MB / 0.5254 GB, free: 13.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006862/0.5397, allocations: 85.7 kB / 0.5255 GB, free: 13.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004207/0.5439, allocations: 3.747 MB / 0.5292 GB, free: 9.891 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001693/0.5456, allocations: 1.274 MB / 0.5304 GB, free: 8.605 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.5467, allocations: 0.5157 MB / 0.5309 GB, free: 8.082 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5469, allocations: 305.1 kB / 0.5312 GB, free: 7.781 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/0.5497, allocations: 1.256 MB / 0.5324 GB, free: 6.523 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00327/0.553, allocations: 1.622 MB / 0.534 GB, free: 4.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00582/0.5588, allocations: 2.996 MB / 0.5369 GB, free: 1.754 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.5588, allocations: 3.938 kB / 0.5369 GB, free: 1.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2386/0.7974, allocations: 5.249 MB / 0.5421 GB, free: 126.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.7975, allocations: 3.938 kB / 0.5421 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.7975, allocations: 9.062 kB / 0.5421 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005029/0.8025, allocations: 1.385 MB / 0.5434 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/0.8052, allocations: 0.5412 MB / 0.544 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02294/0.8281, allocations: 23.98 MB / 0.5674 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/0.8314, allocations: 132 kB / 0.5675 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003722/0.8318, allocations: 110.8 kB / 0.5676 GB, free: 109.8 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.00286/0.8346, allocations: 2.186 MB / 0.5697 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009812/0.8356, allocations: 0.8648 MB / 0.5706 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009615/0.8452, allocations: 5.218 MB / 0.5757 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.8453, allocations: 40 kB / 0.5757 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.8453, allocations: 4 kB / 0.5757 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.728e-05/0.8454, allocations: 19.92 kB / 0.5757 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/0.862, allocations: 11.05 MB / 0.5865 GB, free: 90.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.8621, allocations: 0 / 0.5865 GB, free: 90.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002121/0.8642, allocations: 463.4 kB / 0.587 GB, free: 90.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00488/0.8691, allocations: 1.338 MB / 0.5883 GB, free: 89.13 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003881/0.8695, allocations: 79.91 kB / 0.5884 GB, free: 89.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01943/0.889, allocations: 21.87 MB / 0.6097 GB, free: 65.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02106/0.9101, allocations: 11.95 MB / 0.6214 GB, free: 53.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/0.9222, allocations: 6.99 MB / 0.6282 GB, free: 46.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.9235, allocations: 0.7922 MB / 0.629 GB, free: 45.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005493/0.9241, allocations: 67.95 kB / 0.6291 GB, free: 45.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/0.926, allocations: 111.9 kB / 0.6292 GB, free: 45.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006278/0.9267, allocations: 271.3 kB / 0.6294 GB, free: 45.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.9268, allocations: 95.98 kB / 0.6295 GB, free: 45.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009588/0.9364, allocations: 11.12 MB / 0.6404 GB, free: 34.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9365, allocations: 0 / 0.6404 GB, free: 34.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004616/0.9411, allocations: 1.076 MB / 0.6414 GB, free: 33.13 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.01358/0.9547, allocations: 7.981 MB / 0.6492 GB, free: 25.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/0.9616, allocations: 4.819 MB / 0.6539 GB, free: 20.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.9617, allocations: 0.625 kB / 0.6539 GB, free: 20.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004233/0.9659, allocations: 3.308 MB / 0.6572 GB, free: 16.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003594/0.9695, allocations: 0.5369 MB / 0.6577 GB, free: 16.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1217/1.091, allocations: 55.93 MB / 0.7123 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008424/1.1, allocations: 4.01 MB / 0.7162 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002704/1.102, allocations: 300.9 kB / 0.7165 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005362/1.108, allocations: 3.221 MB / 0.7196 GB, free: 404 kB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/1.108, allocations: 0 / 0.7196 GB, free: 404 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5617/1.67, allocations: 142.2 MB / 0.8585 GB, free: 69.74 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 88.17/89.84, allocations: 5.547 kB / 0.8585 GB, free: 69.73 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