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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.186/1.186, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009248/0.0009246, allocations: 103.3 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008973/0.0008975, allocations: 35.95 kB / 327.2 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.205, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0101/0.2151, allocations: 10.89 MB / 384.7 MB, free: 37.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007208/0.2224, allocations: 3.491 MB / 388.2 MB, free: 34.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.2249, allocations: 38.59 kB / 388.2 MB, free: 34.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006115/0.2311, allocations: 8.129 MB / 396.4 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005305/0.2365, allocations: 4.567 MB / 400.9 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001878/0.2384, allocations: 0.8163 MB / 401.8 MB, free: 21.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004877/0.2433, allocations: 5.134 MB / 406.9 MB, free: 16.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.2444, allocations: 0.7782 MB / 407.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.2474, allocations: 2.587 MB / 410.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0045/0.252, allocations: 4.947 MB / 415.2 MB, free: 8.008 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007288/0.2527, allocations: 175.9 kB / 415.4 MB, free: 7.836 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009418/0.2537, allocations: 207.9 kB / 415.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001188/0.2549, allocations: 1.775 MB / 417.4 MB, free: 5.844 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002293/0.2572, allocations: 2.612 MB / 420 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.2622, allocations: 6.93 MB / 426.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2622, allocations: 0 / 426.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2622, allocations: 0 / 426.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.2624, allocations: 0 / 426.9 MB, free: 12.25 MB / 314.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.01079/0.2732, allocations: 7.647 MB / 434.5 MB, free: 4.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.2732, allocations: 15.97 kB / 434.6 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009521/0.2742, allocations: 0.8416 MB / 435.4 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003738/0.2779, allocations: 3.159 MB / 438.6 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.278, allocations: 160.5 kB / 438.7 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000258/0.2783, allocations: 212 kB / 438.9 MB, free: 32 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003417/0.2817, allocations: 2.104 MB / 441 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.775e-05/0.2818, allocations: 15.91 kB / 441 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.282, allocations: 80 kB / 441.1 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.282, allocations: 48 kB / 441.2 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003428/0.2854, allocations: 1.899 MB / 443.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.298, allocations: 8.93 MB / 452 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003458/0.3015, allocations: 2.333 MB / 454.3 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002374/0.3039, allocations: 1.384 MB / 455.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.304, allocations: 38.3 kB / 455.8 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001903/0.3059, allocations: 1.156 MB / 456.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=242): time 4.338e-06/0.3059, allocations: 0 / 456.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=367): time 0.06337/0.3693, allocations: 22.8 MB / 479.7 MB, free: 6.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02611/0.3954, allocations: 13.04 MB / 492.7 MB, free: 9.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1625/0.558, allocations: 14.89 MB / 0.4957 GB, free: 101.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000479/0.5585, allocations: 82.3 kB / 0.4958 GB, free: 101 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00249/0.561, allocations: 3.731 MB / 0.4995 GB, free: 98.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.562, allocations: 1.207 MB / 0.5006 GB, free: 98.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008301/0.5629, allocations: 0.5141 MB / 0.5011 GB, free: 97.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.415e-05/0.5629, allocations: 307.2 kB / 0.5014 GB, free: 97.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/0.5651, allocations: 1.25 MB / 0.5027 GB, free: 96.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.5672, allocations: 1.628 MB / 0.5042 GB, free: 96.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004095/0.5713, allocations: 2.996 MB / 0.5072 GB, free: 94.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.5713, allocations: 1.688 kB / 0.5072 GB, free: 94.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009013/0.5804, allocations: 5.205 MB / 0.5123 GB, free: 92.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.5804, allocations: 7.562 kB / 0.5123 GB, free: 92.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.5804, allocations: 7.5 kB / 0.5123 GB, free: 92.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004619/0.585, allocations: 1.388 MB / 0.5136 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/0.5872, allocations: 0.5381 MB / 0.5141 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01931/0.6065, allocations: 21.91 MB / 0.5355 GB, free: 69.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.6093, allocations: 121.4 kB / 0.5357 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002269/0.6096, allocations: 116 kB / 0.5358 GB, free: 69.48 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.002102/0.6117, allocations: 2.191 MB / 0.5379 GB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006196/0.6123, allocations: 0.8175 MB / 0.5387 GB, free: 66.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0089/0.6212, allocations: 5.219 MB / 0.5438 GB, free: 61.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/0.6213, allocations: 36 kB / 0.5438 GB, free: 61.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.6213, allocations: 4 kB / 0.5438 GB, free: 61.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.6213, allocations: 15.94 kB / 0.5439 GB, free: 61.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01454/0.6359, allocations: 11.1 MB / 0.5547 GB, free: 49.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.6359, allocations: 0 / 0.5547 GB, free: 49.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/0.6379, allocations: 463.4 kB / 0.5551 GB, free: 49.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004461/0.6424, allocations: 1.33 MB / 0.5564 GB, free: 48.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001868/0.6426, allocations: 79.97 kB / 0.5565 GB, free: 48.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01714/0.6597, allocations: 20 MB / 0.576 GB, free: 26.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01941/0.6792, allocations: 11.41 MB / 0.5872 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2679/0.9471, allocations: 67.32 MB / 0.6529 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.9483, allocations: 0.7491 MB / 0.6537 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006699/0.949, allocations: 67.28 kB / 0.6537 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/0.9509, allocations: 115.3 kB / 0.6538 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006256/0.9516, allocations: 269.7 kB / 0.6541 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/0.9518, allocations: 97.09 kB / 0.6542 GB, free: 124.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01123/0.963, allocations: 11.12 MB / 0.6651 GB, free: 124.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9631, allocations: 0 / 0.6651 GB, free: 124.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005224/0.9683, allocations: 1.69 MB / 0.6667 GB, free: 124.2 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.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.001116/0.9694, allocations: 0.4961 MB / 0.6672 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006684/0.9761, allocations: 4.795 MB / 0.6719 GB, free: 122.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.9762, allocations: 0 / 0.6719 GB, free: 122.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004071/0.9802, allocations: 3.282 MB / 0.6751 GB, free: 121.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/0.9833, allocations: 0.5186 MB / 0.6756 GB, free: 120.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/1.008, allocations: 23.97 MB / 0.699 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003678/1.011, allocations: 4.165 MB / 0.7031 GB, free: 97.45 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002357/1.014, allocations: 374.1 kB / 0.7034 GB, free: 97.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009701/1.015, allocations: 200.7 kB / 0.7036 GB, free: 97 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/1.015, allocations: 0 / 0.7036 GB, free: 97 MB / 426.7 MB Notification: Performance of Templates: time 0.1864/1.201, allocations: 97.83 MB / 0.7991 GB, free: 15.66 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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 & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches