Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8649/0.8649, allocations: 177.1 MB / 204.2 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.33e-05/1.51e-05, allocations: 8.75 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.007928/0.007943, allocations: 9.859 MB / 334.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005287/0.01323, allocations: 3.814 MB / 338.2 MB, free: 2.207 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009107/0.01414, allocations: 47.75 kB / 338.3 MB, free: 2.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005109/0.01925, allocations: 8.172 MB / 346.5 MB, free: 9.965 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004268/0.02352, allocations: 4.77 MB / 351.2 MB, free: 5.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.02515, allocations: 0.9281 MB / 352.2 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004837/0.02999, allocations: 5.519 MB / 357.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007532/0.03075, allocations: 0.5554 MB / 358.2 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003533/0.03428, allocations: 3.587 MB / 361.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003449/0.03773, allocations: 5.48 MB / 367.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003324/0.03806, allocations: 360 kB / 367.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.03848, allocations: 407.9 kB / 368.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00111/0.03959, allocations: 1.927 MB / 370 MB, free: 2.355 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009014/0.04049, allocations: 1.439 MB / 371.4 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004257/0.04475, allocations: 7.167 MB / 378.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.04475, allocations: 8 kB / 378.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04475, allocations: 0 / 378.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.68e-05/0.04484, allocations: 3.938 kB / 378.6 MB, free: 9.707 MB / 346.7 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.006323/0.05116, allocations: 7.858 MB / 386.5 MB, free: 1.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.05121, allocations: 16.02 kB / 386.5 MB, free: 1.742 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002541/0.05146, allocations: 295.7 kB / 386.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007989/0.05226, allocations: 0.948 MB / 387.7 MB, free: 500 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.05501, allocations: 3.237 MB / 390.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.05509, allocations: 160.2 kB / 391.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.0553, allocations: 215.9 kB / 391.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.05792, allocations: 2.218 MB / 393.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.372e-05/0.05797, allocations: 3.953 kB / 393.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.05809, allocations: 91.98 kB / 393.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.05812, allocations: 48 kB / 393.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.06044, allocations: 1.848 MB / 395.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008902/0.06934, allocations: 7.874 MB / 403.4 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/0.0722, allocations: 2.02 MB / 405.4 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.07384, allocations: 1.28 MB / 406.7 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-05/0.07393, allocations: 34.3 kB / 406.7 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/0.07525, allocations: 1.254 MB / 408 MB, free: 11.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 4.208e-06/0.07526, allocations: 0 / 408 MB, free: 11.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=371): time 0.03433/0.1096, allocations: 22.21 MB / 430.2 MB, free: 5.453 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0169/0.1265, allocations: 13.19 MB / 443.4 MB, free: 7.941 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1637/0.2902, allocations: 15.07 MB / 458.5 MB, free: 105.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004999/0.2907, allocations: 89.17 kB / 458.5 MB, free: 105.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.2924, allocations: 3.792 MB / 462.3 MB, free: 103.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007958/0.2932, allocations: 1.266 MB / 463.6 MB, free: 102.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005729/0.2938, allocations: 0.5253 MB / 464.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.638e-05/0.2938, allocations: 307.9 kB / 464.4 MB, free: 102.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.2953, allocations: 1.235 MB / 465.7 MB, free: 101.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.2967, allocations: 1.728 MB / 467.4 MB, free: 100.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.2995, allocations: 2.976 MB / 470.4 MB, free: 99.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.2995, allocations: 3.5 kB / 470.4 MB, free: 99.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.005971/0.3055, allocations: 5.211 MB / 475.6 MB, free: 95.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.3055, allocations: 4 kB / 475.6 MB, free: 95.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.3055, allocations: 8 kB / 475.6 MB, free: 95.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002512/0.3081, allocations: 1.409 MB / 477 MB, free: 94.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.3093, allocations: 0.5343 MB / 477.5 MB, free: 93.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/0.3237, allocations: 22.75 MB / 0.4886 GB, free: 70.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.3258, allocations: 117 kB / 0.4887 GB, free: 70.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.3259, allocations: 112 kB / 0.4888 GB, free: 70.25 MB / 410.7 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.002357/0.3283, allocations: 2.203 MB / 0.4909 GB, free: 68.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005926/0.3289, allocations: 0.8769 MB / 0.4918 GB, free: 67.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005657/0.3345, allocations: 5.247 MB / 0.4969 GB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.3345, allocations: 40 kB / 0.497 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.3346, allocations: 4 kB / 0.497 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/0.3346, allocations: 19.92 kB / 0.497 GB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.3462, allocations: 10.18 MB / 0.5069 GB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.3462, allocations: 4 kB / 0.5069 GB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.3474, allocations: 455.5 kB / 0.5074 GB, free: 51.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002502/0.3499, allocations: 1.343 MB / 0.5087 GB, free: 49.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.35, allocations: 71.97 kB / 0.5087 GB, free: 49.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.362, allocations: 20.65 MB / 0.5289 GB, free: 28.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01179/0.3738, allocations: 11.53 MB / 0.5402 GB, free: 16.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007306/0.3811, allocations: 6.926 MB / 0.5469 GB, free: 9.328 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008587/0.3819, allocations: 0.7343 MB / 0.5476 GB, free: 8.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003685/0.3823, allocations: 71.94 kB / 0.5477 GB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000999/0.3833, allocations: 95.95 kB / 0.5478 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005194/0.3838, allocations: 295.2 kB / 0.5481 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.3839, allocations: 91.98 kB / 0.5482 GB, free: 8.043 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007906/0.3919, allocations: 11.23 MB / 0.5591 GB, free: 12.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3919, allocations: 0 / 0.5591 GB, free: 12.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002597/0.3945, allocations: 1.1 MB / 0.5602 GB, free: 11.73 MB / 426.7 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 249 * 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.009137/0.4036, allocations: 7.94 MB / 0.568 GB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005239/0.4088, allocations: 4.596 MB / 0.5725 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4088, allocations: 0 / 0.5725 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002966/0.4118, allocations: 3.135 MB / 0.5755 GB, free: 11.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.4137, allocations: 0.5626 MB / 0.5761 GB, free: 11.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.192/0.6057, allocations: 56.34 MB / 0.6311 GB, free: 148.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/0.6086, allocations: 3.566 MB / 0.6346 GB, free: 148.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001547/0.6101, allocations: 321.9 kB / 0.6349 GB, free: 148.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00284/0.613, allocations: 3.282 MB / 0.6381 GB, free: 146 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/0.613, allocations: 0 / 0.6381 GB, free: 146 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/0.7474, allocations: 146.6 MB / 0.7812 GB, free: 7.91 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.41/21.16, allocations: 7.875 kB / 0.7812 GB, free: 7.902 MB / 474.7 MB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.14990564994514]