Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_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.001317/0.001317, allocations: 111.7 kB / 17.73 MB, free: 5.355 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.00129/0.00129, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001657/0.001657, allocations: 59.91 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08912, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.1973/0.2864, allocations: 10.98 MB / 385.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007196/0.2937, allocations: 3.548 MB / 389.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.2961, allocations: 37.91 kB / 389.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008381/0.3045, allocations: 8.137 MB / 397.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006886/0.3115, allocations: 4.619 MB / 402 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00249/0.314, allocations: 0.9216 MB / 402.9 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008025/0.322, allocations: 5.311 MB / 408.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.3238, allocations: 0.8951 MB / 409.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005288/0.3291, allocations: 2.861 MB / 412 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007059/0.3362, allocations: 5.119 MB / 417.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.3373, allocations: 352 kB / 417.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001374/0.3386, allocations: 388 kB / 417.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001606/0.3403, allocations: 1.865 MB / 419.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003214/0.3435, allocations: 2.792 MB / 422.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008893/0.3524, allocations: 7.293 MB / 429.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.3525, allocations: 0 / 429.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3525, allocations: 0 / 429.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003116/0.3528, allocations: 0 / 429.7 MB, free: 8.676 MB / 350.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.01431/0.3671, allocations: 7.942 MB / 437.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3672, allocations: 8.031 kB / 437.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003947/0.3676, allocations: 287.6 kB / 438 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.3687, allocations: 0.8903 MB / 438.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005393/0.3742, allocations: 3.265 MB / 442.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.3744, allocations: 163.7 kB / 442.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004974/0.3749, allocations: 204.6 kB / 442.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004525/0.3794, allocations: 2.104 MB / 444.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.778e-05/0.3795, allocations: 7.953 kB / 444.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/0.3797, allocations: 91.98 kB / 444.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-05/0.3798, allocations: 52 kB / 444.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004003/0.3838, allocations: 1.895 MB / 446.6 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01607/0.3999, allocations: 8.902 MB / 455.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004175/0.4041, allocations: 2.329 MB / 457.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002928/0.407, allocations: 1.416 MB / 459.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.4072, allocations: 38.28 kB / 459.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/0.4094, allocations: 1.163 MB / 460.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.348e-06/0.4094, allocations: 3.938 kB / 460.5 MB, free: 9.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06711/0.4766, allocations: 23.2 MB / 483.7 MB, free: 1.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03042/0.507, allocations: 13.63 MB / 497.3 MB, free: 3.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01822/0.5253, allocations: 14.89 MB / 0.5002 GB, free: 4.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006486/0.526, allocations: 89.7 kB / 0.5003 GB, free: 4.898 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004375/0.5304, allocations: 3.743 MB / 0.504 GB, free: 1.148 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001712/0.5321, allocations: 1.274 MB / 0.5052 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.5332, allocations: 0.5157 MB / 0.5057 GB, free: 15.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5333, allocations: 309.2 kB / 0.506 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.536, allocations: 1.248 MB / 0.5072 GB, free: 13.78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002948/0.5389, allocations: 1.626 MB / 0.5088 GB, free: 12.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/0.5447, allocations: 2.996 MB / 0.5117 GB, free: 9.008 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.5447, allocations: 4 kB / 0.5117 GB, free: 9.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01176/0.5565, allocations: 5.24 MB / 0.5168 GB, free: 3.727 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.5565, allocations: 4 kB / 0.5169 GB, free: 3.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.5566, allocations: 8 kB / 0.5169 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005473/0.562, allocations: 1.389 MB / 0.5182 GB, free: 2.301 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002696/0.5648, allocations: 0.5461 MB / 0.5187 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03135/0.5961, allocations: 23.99 MB / 0.5422 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/0.5995, allocations: 123.9 kB / 0.5423 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003636/0.5999, allocations: 120 kB / 0.5424 GB, free: 8.254 MB / 478.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.003446/0.6033, allocations: 2.184 MB / 0.5445 GB, free: 6.059 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/0.6046, allocations: 0.8614 MB / 0.5454 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1864/0.791, allocations: 5.219 MB / 0.5505 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-05/0.791, allocations: 35.22 kB / 0.5505 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.498e-05/0.7911, allocations: 6.078 kB / 0.5505 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.922e-05/0.7912, allocations: 19.5 kB / 0.5505 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/0.8115, allocations: 11.06 MB / 0.5613 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/0.8116, allocations: 3.938 kB / 0.5613 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002513/0.8141, allocations: 460.3 kB / 0.5618 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005682/0.8198, allocations: 1.336 MB / 0.5631 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006573/0.8205, allocations: 74.53 kB / 0.5632 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/0.8424, allocations: 21.87 MB / 0.5845 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02933/0.8717, allocations: 11.94 MB / 0.5962 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/0.8856, allocations: 6.994 MB / 0.603 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/0.887, allocations: 0.7991 MB / 0.6038 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007983/0.8878, allocations: 65.36 kB / 0.6038 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/0.8899, allocations: 114.1 kB / 0.604 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000765/0.8907, allocations: 266.8 kB / 0.6042 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001872/0.8909, allocations: 94.05 kB / 0.6043 GB, free: 116.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009916/0.9008, allocations: 11.12 MB / 0.6152 GB, free: 105.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9008, allocations: 1.312 kB / 0.6152 GB, free: 105.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004399/0.9052, allocations: 1.074 MB / 0.6162 GB, free: 104.8 MB / 478.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.0142/0.9195, allocations: 7.977 MB / 0.624 GB, free: 96.74 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007235/0.9267, allocations: 4.823 MB / 0.6287 GB, free: 91.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.9268, allocations: 0 / 0.6287 GB, free: 91.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004691/0.9315, allocations: 3.296 MB / 0.6319 GB, free: 88.39 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.9347, allocations: 0.5616 MB / 0.6325 GB, free: 87.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07889/1.014, allocations: 55.91 MB / 0.6871 GB, free: 31.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003189/1.017, allocations: 4.021 MB / 0.691 GB, free: 27.42 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001591/1.018, allocations: 300.9 kB / 0.6913 GB, free: 27.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00269/1.021, allocations: 3.225 MB / 0.6944 GB, free: 23.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/1.021, allocations: 0 / 0.6944 GB, free: 23.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4666/1.488, allocations: 142.2 MB / 0.8333 GB, free: 77.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 89.59/91.08, allocations: 8 kB / 0.8333 GB, free: 77.84 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches