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.001393/0.001394, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000919/0.000919, allocations: 84.48 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.637e-05/1.639e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3184/0.4246, allocations: 94.96 MB / 482.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000315/0.425, allocations: 83.95 kB / 482.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1982/0.6232, allocations: 78.67 MB / 0.548 GB, free: 104 kB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6232, allocations: 0 / 0.548 GB, free: 104 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.2395/0.8627, allocations: 117.2 kB / 0.5481 GB, free: 101.2 MB / 426.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.01387/0.8767, allocations: 5.524 MB / 0.5535 GB, free: 99.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.8767, allocations: 8.25 kB / 0.5535 GB, free: 99.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003153/0.8799, allocations: 0.8638 MB / 0.5544 GB, free: 99.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.8911, allocations: 3.599 MB / 0.5579 GB, free: 98.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.8913, allocations: 69.31 kB / 0.558 GB, free: 98.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006622/0.892, allocations: 120.6 kB / 0.5581 GB, free: 98.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004065/0.8961, allocations: 1.675 MB / 0.5597 GB, free: 98.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003282/0.8994, allocations: 1.726 MB / 0.5614 GB, free: 98.15 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.802e-05/0.8994, allocations: 5.781 kB / 0.5614 GB, free: 98.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.8996, allocations: 1.438 kB / 0.5614 GB, free: 98.15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.274e-05/0.8996, allocations: 53.44 kB / 0.5615 GB, free: 98.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/0.9215, allocations: 9.74 MB / 0.571 GB, free: 96.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003791/0.9253, allocations: 2.187 MB / 0.5731 GB, free: 96.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002018/0.9274, allocations: 1.237 MB / 0.5743 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000167/0.9276, allocations: 40.53 kB / 0.5743 GB, free: 96.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001835/0.9294, allocations: 1.033 MB / 0.5754 GB, free: 95.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=246): time 5.04e-06/0.9294, allocations: 0 / 0.5754 GB, free: 95.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=382): time 0.03914/0.9686, allocations: 16.56 MB / 0.5915 GB, free: 88.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.9687, allocations: 278.1 kB / 0.5918 GB, free: 87.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1339/1.103, allocations: 12.9 MB / 0.6044 GB, free: 83.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008709/1.104, allocations: 25.7 kB / 0.6044 GB, free: 83.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004718/1.108, allocations: 3.482 MB / 0.6078 GB, free: 80.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001521/1.11, allocations: 1.212 MB / 0.609 GB, free: 79.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006519/1.111, allocations: 6.578 kB / 0.609 GB, free: 79.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/1.111, allocations: 440.2 kB / 0.6094 GB, free: 79.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/1.113, allocations: 1.208 MB / 0.6106 GB, free: 78.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002714/1.116, allocations: 1.526 MB / 0.6121 GB, free: 77.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/1.119, allocations: 1.4 MB / 0.6135 GB, free: 77.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/1.119, allocations: 0 / 0.6135 GB, free: 77.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01103/1.13, allocations: 4.984 MB / 0.6183 GB, free: 73.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/1.13, allocations: 4 kB / 0.6183 GB, free: 73.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/1.13, allocations: 4 kB / 0.6183 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005481/1.135, allocations: 1.375 MB / 0.6197 GB, free: 72.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/1.139, allocations: 0.5742 MB / 0.6202 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02177/1.16, allocations: 21.43 MB / 0.6412 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004711/1.165, allocations: 129.9 kB / 0.6413 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005685/1.166, allocations: 125.6 kB / 0.6414 GB, free: 50.63 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0006586/1.166, allocations: 156.4 kB / 0.6415 GB, free: 50.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002191/1.169, allocations: 0.8488 MB / 0.6424 GB, free: 49.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.18, allocations: 5.114 MB / 0.6474 GB, free: 45.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004289/1.185, allocations: 2.232 MB / 0.6496 GB, free: 43.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/1.185, allocations: 11.75 kB / 0.6496 GB, free: 43.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-05/1.185, allocations: 23.94 kB / 0.6496 GB, free: 43.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02467/1.21, allocations: 13.45 MB / 0.6627 GB, free: 32.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.95e-05/1.21, allocations: 4 kB / 0.6627 GB, free: 32.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002463/1.212, allocations: 0.4904 MB / 0.6632 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005284/1.217, allocations: 1.415 MB / 0.6646 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004651/1.218, allocations: 30.53 kB / 0.6646 GB, free: 30.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01942/1.237, allocations: 19.67 MB / 0.6838 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05341/1.291, allocations: 26.43 MB / 0.7096 GB, free: 2.691 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3042/1.595, allocations: 7.52 MB / 0.717 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004352/1.599, allocations: 1.59 MB / 0.7185 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002521/1.602, allocations: 30 kB / 0.7186 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004751/1.607, allocations: 110.6 kB / 0.7187 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/1.608, allocations: 290.5 kB / 0.7189 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003444/1.609, allocations: 108.2 kB / 0.719 GB, free: 101.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.02288/1.631, allocations: 10.28 MB / 0.7291 GB, free: 101.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.92e-07/1.631, allocations: 0 / 0.7291 GB, free: 101.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006538/1.638, allocations: 1.596 MB / 0.7306 GB, free: 101.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET1.x[2],$STATESET1.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET0.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001332/1.639, allocations: 408.8 kB / 0.731 GB, free: 101 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00666/1.646, allocations: 4.598 MB / 0.7355 GB, free: 99.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.646, allocations: 3 kB / 0.7355 GB, free: 99.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004956/1.651, allocations: 3.216 MB / 0.7387 GB, free: 98.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006348/1.657, allocations: 420.7 kB / 0.7391 GB, free: 98.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03064/1.688, allocations: 17.28 MB / 0.7559 GB, free: 95.42 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00628/1.694, allocations: 4.209 MB / 0.7601 GB, free: 94.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003563/1.698, allocations: 0.8367 MB / 0.7609 GB, free: 94.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/1.699, allocations: 359.1 kB / 0.7612 GB, free: 94.08 MB / 442.7 MB Notification: Performance of SimCode: time 1.123e-06/1.699, allocations: 2.531 kB / 0.7612 GB, free: 94.08 MB / 442.7 MB Notification: Performance of Templates: time 0.2861/1.986, allocations: 82.34 MB / 0.8416 GB, free: 28.08 MB / 442.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/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