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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.002822/0.002822, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.501/2.501, allocations: 222.9 MB / 241.7 MB, free: 15.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.00186, allocations: 51.39 kB / 300.6 MB, free: 6.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1527, allocations: 49.45 MB / 350.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01901/0.1717, allocations: 11 MB / 361.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01264/0.1844, allocations: 3.592 MB / 364.7 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004745/0.1893, allocations: 39.88 kB / 364.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3654/0.5548, allocations: 8.124 MB / 372.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01421/0.5691, allocations: 4.564 MB / 377.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004491/0.5736, allocations: 0.8501 MB / 378.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01531/0.589, allocations: 5.08 MB / 383.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002872/0.5919, allocations: 0.7653 MB / 384.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009608/0.6016, allocations: 2.59 MB / 386.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01167/0.6133, allocations: 4.956 MB / 391.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/0.615, allocations: 169.7 kB / 391.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002458/0.6175, allocations: 209.7 kB / 392 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00259/0.6201, allocations: 1.766 MB / 393.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005605/0.6258, allocations: 2.619 MB / 396.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007831/0.6337, allocations: 5.553 MB / 401.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.6338, allocations: 0 / 401.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6338, allocations: 0 / 401.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003143/0.6341, allocations: 0 / 401.9 MB, free: 15.74 MB / 318.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.03035/0.6645, allocations: 7.647 MB / 409.6 MB, free: 8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.477e-05/0.6646, allocations: 8.031 kB / 409.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003536/0.6681, allocations: 0.8493 MB / 410.4 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.6793, allocations: 3.157 MB / 413.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003379/0.6797, allocations: 156.5 kB / 413.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/0.6809, allocations: 204.6 kB / 413.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.6917, allocations: 2.112 MB / 416.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001421/0.6919, allocations: 11.91 kB / 416.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004743/0.6924, allocations: 83.98 kB / 416.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.157e-05/0.6925, allocations: 55.94 kB / 416.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008345/0.7009, allocations: 1.891 MB / 418.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03111/0.7321, allocations: 8.946 MB / 427 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00668/0.7388, allocations: 2.324 MB / 429.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004372/0.7433, allocations: 1.378 MB / 430.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002414/0.7436, allocations: 41.97 kB / 430.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003762/0.7473, allocations: 1.159 MB / 431.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 9.077e-06/0.7474, allocations: 4 kB / 432 MB, free: 1.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.1155/0.8629, allocations: 22.79 MB / 454.7 MB, free: 10.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05023/0.9132, allocations: 13.03 MB / 467.8 MB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0416/0.9549, allocations: 14.89 MB / 482.7 MB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001106/0.9561, allocations: 93.77 kB / 482.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007616/0.9637, allocations: 3.725 MB / 486.5 MB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002924/0.9667, allocations: 1.214 MB / 487.7 MB, free: 9.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/0.9685, allocations: 0.5117 MB / 488.2 MB, free: 8.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.9687, allocations: 309 kB / 488.5 MB, free: 8.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004713/0.9734, allocations: 1.252 MB / 489.8 MB, free: 7.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005265/0.9787, allocations: 1.622 MB / 491.4 MB, free: 5.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009755/0.9886, allocations: 2.999 MB / 494.4 MB, free: 2.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.628e-05/0.9887, allocations: 4 kB / 494.4 MB, free: 2.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.02314/1.012, allocations: 5.199 MB / 499.6 MB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.366e-05/1.012, allocations: 4 kB / 499.6 MB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.903e-05/1.012, allocations: 8 kB / 499.6 MB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009687/1.022, allocations: 1.389 MB / 0.4892 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005177/1.027, allocations: 0.5422 MB / 0.4898 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0521/1.079, allocations: 21.91 MB / 0.5112 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006971/1.086, allocations: 135.9 kB / 0.5113 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001426/1.088, allocations: 111.9 kB / 0.5114 GB, free: 3.738 MB / 430.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.009806/1.097, allocations: 2.187 MB / 0.5135 GB, free: 1.543 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004155/1.102, allocations: 0.8175 MB / 0.5143 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02487/1.127, allocations: 5.223 MB / 0.5194 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.791e-05/1.127, allocations: 36 kB / 0.5195 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.364e-05/1.127, allocations: 4 kB / 0.5195 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001268/1.127, allocations: 19.92 kB / 0.5195 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04541/1.172, allocations: 11.07 MB / 0.5303 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-05/1.173, allocations: 4 kB / 0.5303 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.4441/1.617, allocations: 459.7 kB / 0.5308 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01082/1.627, allocations: 1.334 MB / 0.5321 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009627/1.629, allocations: 73.09 kB / 0.5321 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04196/1.671, allocations: 20.01 MB / 0.5517 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0442/1.715, allocations: 11.42 MB / 0.5628 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02727/1.742, allocations: 6.934 MB / 0.5696 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003313/1.746, allocations: 0.761 MB / 0.5703 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002697/1.748, allocations: 66 kB / 0.5704 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005762/1.754, allocations: 110.2 kB / 0.5705 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001815/1.756, allocations: 265.2 kB / 0.5708 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005526/1.757, allocations: 94.23 kB / 0.5708 GB, free: 121.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.02748/1.784, allocations: 11.13 MB / 0.5817 GB, free: 114.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.144e-06/1.784, allocations: 0 / 0.5817 GB, free: 114.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01152/1.796, allocations: 1.074 MB / 0.5828 GB, free: 113.8 MB / 446.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.002781/1.799, allocations: 0.5004 MB / 0.5833 GB, free: 113.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01414/1.813, allocations: 4.799 MB / 0.5879 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/1.813, allocations: 0 / 0.5879 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008667/1.821, allocations: 3.276 MB / 0.5911 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006962/1.829, allocations: 0.5271 MB / 0.5917 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05334/1.882, allocations: 20.57 MB / 0.6117 GB, free: 84.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01072/1.893, allocations: 4.01 MB / 0.6157 GB, free: 80.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002184/1.895, allocations: 187.4 kB / 0.6158 GB, free: 80.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.833e-06/1.895, allocations: 0 / 0.6158 GB, free: 80.27 MB / 446.1 MB Notification: Performance of Templates: time 2.471/4.366, allocations: 0.5417 GB / 1.157 GB, free: 58.01 MB / 478.1 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/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