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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001064, allocations: 105.6 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007772/0.0007773, allocations: 39.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2029, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008236/0.2112, allocations: 10.99 MB / 410.5 MB, free: 22.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004992/0.2162, allocations: 3.589 MB / 414.1 MB, free: 18.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.2173, allocations: 39.88 kB / 414.1 MB, free: 18.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004498/0.2219, allocations: 8.137 MB / 422.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003966/0.2258, allocations: 4.559 MB / 426.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001832/0.2277, allocations: 0.8507 MB / 427.6 MB, free: 5.137 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00456/0.2323, allocations: 5.12 MB / 432.8 MB, free: 8 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.2335, allocations: 0.7664 MB / 433.5 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003496/0.237, allocations: 2.591 MB / 436.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005656/0.2426, allocations: 4.951 MB / 441.1 MB, free: 7.645 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007446/0.2434, allocations: 171.9 kB / 441.2 MB, free: 7.477 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007891/0.2442, allocations: 208 kB / 441.4 MB, free: 7.273 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.2455, allocations: 1.775 MB / 443.2 MB, free: 5.484 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002126/0.2477, allocations: 2.62 MB / 445.8 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00521/0.2529, allocations: 6.927 MB / 452.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2529, allocations: 0 / 452.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.253, allocations: 0 / 452.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001878/0.2531, allocations: 0 / 452.8 MB, free: 11.88 MB / 330.7 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.01209/0.2652, allocations: 7.647 MB / 460.4 MB, free: 4.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.2653, allocations: 8.031 kB / 460.4 MB, free: 4.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.2664, allocations: 0.8493 MB / 461.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003796/0.2702, allocations: 3.155 MB / 464.4 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.2703, allocations: 156.6 kB / 464.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002655/0.2706, allocations: 212 kB / 464.8 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003487/0.2741, allocations: 2.108 MB / 466.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/0.2742, allocations: 11.94 kB / 466.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/0.2743, allocations: 80 kB / 467 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/0.2744, allocations: 52 kB / 467 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003569/0.278, allocations: 1.895 MB / 468.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01405/0.292, allocations: 8.934 MB / 477.9 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/0.296, allocations: 2.329 MB / 480.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/0.2986, allocations: 1.385 MB / 481.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.2988, allocations: 38.28 kB / 481.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002039/0.3008, allocations: 1.16 MB / 482.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 4.859e-06/0.3008, allocations: 0 / 482.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.06285/0.3637, allocations: 22.8 MB / 0.4937 GB, free: 6.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1962/0.56, allocations: 13.01 MB / 0.5064 GB, free: 90.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01405/0.5741, allocations: 14.89 MB / 0.521 GB, free: 82.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006367/0.5747, allocations: 85.7 kB / 0.5211 GB, free: 82.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002348/0.5771, allocations: 3.731 MB / 0.5247 GB, free: 78.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009951/0.5781, allocations: 1.214 MB / 0.5259 GB, free: 78.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000819/0.5789, allocations: 0.5129 MB / 0.5264 GB, free: 77.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.315e-05/0.579, allocations: 305.1 kB / 0.5267 GB, free: 77.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.5811, allocations: 1.261 MB / 0.5279 GB, free: 76.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.5833, allocations: 1.624 MB / 0.5295 GB, free: 74.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/0.5877, allocations: 2.983 MB / 0.5324 GB, free: 71.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.5877, allocations: 2.25 kB / 0.5324 GB, free: 71.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01028/0.598, allocations: 5.212 MB / 0.5375 GB, free: 66.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.5981, allocations: 8 kB / 0.5375 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.5981, allocations: 4 kB / 0.5375 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005137/0.6033, allocations: 1.389 MB / 0.5389 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002649/0.6059, allocations: 0.5412 MB / 0.5394 GB, free: 64.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/0.6269, allocations: 21.91 MB / 0.5608 GB, free: 41.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/0.63, allocations: 131.8 kB / 0.5609 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002627/0.6303, allocations: 115.6 kB / 0.561 GB, free: 41.27 MB / 378.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 (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.002316/0.6326, allocations: 2.185 MB / 0.5632 GB, free: 39.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000692/0.6333, allocations: 0.8098 MB / 0.5639 GB, free: 38.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009663/0.643, allocations: 5.236 MB / 0.5691 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-05/0.6431, allocations: 39.94 kB / 0.5691 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/0.6431, allocations: 8 kB / 0.5691 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.552e-05/0.6431, allocations: 15.94 kB / 0.5691 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/0.6605, allocations: 11.07 MB / 0.5799 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.6605, allocations: 4.094 kB / 0.5799 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002158/0.6627, allocations: 467.3 kB / 0.5804 GB, free: 21.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004882/0.6676, allocations: 1.333 MB / 0.5817 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002876/0.6679, allocations: 75.97 kB / 0.5818 GB, free: 19.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/0.687, allocations: 20.02 MB / 0.6013 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02406/0.711, allocations: 11.4 MB / 0.6125 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3214/1.032, allocations: 67.32 MB / 0.6782 GB, free: 123.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/1.034, allocations: 0.7507 MB / 0.6789 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/1.035, allocations: 63.34 kB / 0.679 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.037, allocations: 116.7 kB / 0.6791 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000784/1.038, allocations: 266.7 kB / 0.6794 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002458/1.038, allocations: 99.03 kB / 0.6794 GB, free: 123.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01028/1.049, allocations: 11.12 MB / 0.6903 GB, free: 121.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.049, allocations: 0 / 0.6903 GB, free: 121.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00767/1.056, allocations: 1.688 MB / 0.692 GB, free: 121.6 MB / 442.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.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.001724/1.058, allocations: 0.4994 MB / 0.6924 GB, free: 121.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008351/1.067, allocations: 4.8 MB / 0.6971 GB, free: 118.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.067, allocations: 0 / 0.6971 GB, free: 118.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0049/1.072, allocations: 3.285 MB / 0.7003 GB, free: 115.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003376/1.075, allocations: 0.5234 MB / 0.7009 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02748/1.102, allocations: 23.94 MB / 0.7242 GB, free: 93.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004185/1.107, allocations: 4.167 MB / 0.7283 GB, free: 90.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002606/1.109, allocations: 365.1 kB / 0.7287 GB, free: 89.79 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.11, allocations: 199.6 kB / 0.7288 GB, free: 89.6 MB / 442.7 MB Notification: Performance of SimCode: time 8.81e-07/1.11, allocations: 4 kB / 0.7289 GB, free: 89.6 MB / 442.7 MB Notification: Performance of Templates: time 0.1998/1.31, allocations: 97.85 MB / 0.8244 GB, free: 8.117 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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 & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches