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.001425/0.001425, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001506/0.001506, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.434/1.434, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001356/0.001356, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09563/0.097, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2296/0.3267, allocations: 10.98 MB / 385.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006947/0.3337, allocations: 3.545 MB / 389.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.336, allocations: 39.38 kB / 389.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009489/0.3457, allocations: 8.141 MB / 397.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008126/0.3538, allocations: 4.644 MB / 402 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.3568, allocations: 0.9163 MB / 402.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009907/0.3667, allocations: 5.32 MB / 408.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.3684, allocations: 0.8881 MB / 409.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006567/0.3749, allocations: 2.874 MB / 412 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007128/0.3821, allocations: 5.112 MB / 417.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.3831, allocations: 355.9 kB / 417.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.3844, allocations: 392 kB / 417.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.386, allocations: 1.866 MB / 419.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003032/0.389, allocations: 2.788 MB / 422.5 MB, free: 68 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007381/0.3964, allocations: 7.293 MB / 429.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3964, allocations: 0 / 429.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3965, allocations: 0 / 429.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.3967, allocations: 0 / 429.8 MB, free: 8.746 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.01328/0.4099, allocations: 7.945 MB / 437.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.41, allocations: 12.03 kB / 437.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000353/0.4104, allocations: 291.6 kB / 438 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.4116, allocations: 0.8882 MB / 438.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004512/0.4162, allocations: 3.261 MB / 442.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002613/0.4164, allocations: 161.8 kB / 442.3 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003411/0.4168, allocations: 204 kB / 442.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004502/0.4213, allocations: 2.112 MB / 444.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.805e-05/0.4214, allocations: 7.953 kB / 444.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/0.4216, allocations: 87.94 kB / 444.7 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-05/0.4216, allocations: 48 kB / 444.8 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004081/0.4257, allocations: 1.899 MB / 446.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01667/0.4424, allocations: 8.891 MB / 455.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004298/0.4467, allocations: 2.337 MB / 457.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002933/0.4497, allocations: 1.404 MB / 459.3 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.4499, allocations: 50.22 kB / 459.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002459/0.4523, allocations: 1.159 MB / 460.5 MB, free: 9.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 2.363e-05/0.4524, allocations: 3.984 kB / 460.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.07658/0.529, allocations: 23.21 MB / 483.7 MB, free: 1.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03117/0.5602, allocations: 13.62 MB / 497.4 MB, free: 3.891 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02151/0.5818, allocations: 14.9 MB / 0.5002 GB, free: 5.059 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005993/0.5824, allocations: 85.7 kB / 0.5003 GB, free: 4.969 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003844/0.5863, allocations: 3.747 MB / 0.504 GB, free: 1.215 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001539/0.5878, allocations: 1.267 MB / 0.5052 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/0.589, allocations: 0.5196 MB / 0.5057 GB, free: 15.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.5891, allocations: 305.1 kB / 0.506 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002891/0.592, allocations: 1.256 MB / 0.5072 GB, free: 13.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002897/0.5949, allocations: 1.622 MB / 0.5088 GB, free: 12.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005626/0.6006, allocations: 2.996 MB / 0.5118 GB, free: 9.078 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.6006, allocations: 4 kB / 0.5118 GB, free: 9.074 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01198/0.6126, allocations: 5.251 MB / 0.5169 GB, free: 3.789 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.6126, allocations: 8 kB / 0.5169 GB, free: 3.781 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.6127, allocations: 12.06 kB / 0.5169 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005769/0.6184, allocations: 1.385 MB / 0.5183 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002762/0.6212, allocations: 0.5383 MB / 0.5188 GB, free: 1.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03152/0.6528, allocations: 23.99 MB / 0.5422 GB, free: 8.559 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003451/0.6563, allocations: 135.9 kB / 0.5423 GB, free: 8.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005542/0.6568, allocations: 112 kB / 0.5424 GB, free: 8.316 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.003907/0.6608, allocations: 2.176 MB / 0.5446 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001712/0.6625, allocations: 0.8614 MB / 0.5454 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.204/0.8665, allocations: 5.216 MB / 0.5505 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.496e-05/0.8666, allocations: 39.28 kB / 0.5505 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-05/0.8667, allocations: 6.172 kB / 0.5505 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.432e-05/0.8668, allocations: 18.84 kB / 0.5506 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02415/0.8909, allocations: 11.06 MB / 0.5614 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/0.891, allocations: 5.281 kB / 0.5614 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/0.8935, allocations: 458.7 kB / 0.5618 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00569/0.8992, allocations: 1.334 MB / 0.5631 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003757/0.8996, allocations: 72.2 kB / 0.5632 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/0.9241, allocations: 21.88 MB / 0.5845 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02639/0.9505, allocations: 11.94 MB / 0.5962 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/0.9676, allocations: 6.991 MB / 0.603 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/0.9696, allocations: 0.7918 MB / 0.6038 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001282/0.9709, allocations: 73.44 kB / 0.6039 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00276/0.9736, allocations: 109 kB / 0.604 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008115/0.9745, allocations: 266.7 kB / 0.6042 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002902/0.9748, allocations: 96.09 kB / 0.6043 GB, free: 116.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01245/0.9873, allocations: 11.12 MB / 0.6152 GB, free: 106 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9873, allocations: 0 / 0.6152 GB, free: 106 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005118/0.9924, allocations: 1.086 MB / 0.6163 GB, free: 104.9 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.01483/1.007, allocations: 7.961 MB / 0.624 GB, free: 96.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007933/1.015, allocations: 4.832 MB / 0.6287 GB, free: 91.97 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/1.015, allocations: 0 / 0.6287 GB, free: 91.97 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004884/1.02, allocations: 3.3 MB / 0.632 GB, free: 88.56 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005142/1.025, allocations: 0.5461 MB / 0.6325 GB, free: 88.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1067/1.132, allocations: 55.92 MB / 0.6871 GB, free: 31.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005818/1.138, allocations: 4.009 MB / 0.691 GB, free: 27.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002314/1.14, allocations: 316.8 kB / 0.6913 GB, free: 27.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003705/1.144, allocations: 3.217 MB / 0.6945 GB, free: 24.07 MB / 478.1 MB Notification: Performance of SimCode: time 1.163e-06/1.144, allocations: 0 / 0.6945 GB, free: 24.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4968/1.641, allocations: 142.2 MB / 0.8333 GB, free: 78.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 92.46/94.1, allocations: 7.938 kB / 0.8333 GB, free: 78.27 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