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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.305/1.305, allocations: 221.4 MB / 229.9 MB, free: 3 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.000923/0.000923, allocations: 102.4 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.663e-06/6.693e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2071, allocations: 50.39 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3116, allocations: 94.88 MB / 481.8 MB, free: 7.855 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.312, allocations: 100.7 kB / 481.9 MB, free: 7.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3381/0.6501, allocations: 77.96 MB / 0.5467 GB, free: 61.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001032/0.6511, allocations: 120 kB / 0.5468 GB, free: 61.46 MB / 378.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.01148/0.6626, allocations: 5.563 MB / 0.5523 GB, free: 55.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.6627, allocations: 8.031 kB / 0.5523 GB, free: 55.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/0.6653, allocations: 0.8489 MB / 0.5531 GB, free: 54.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009443/0.6748, allocations: 3.558 MB / 0.5566 GB, free: 51.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.6749, allocations: 71.98 kB / 0.5567 GB, free: 51.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007631/0.6757, allocations: 123.9 kB / 0.5568 GB, free: 51.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00445/0.6802, allocations: 1.68 MB / 0.5584 GB, free: 49.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004489/0.6847, allocations: 1.721 MB / 0.5601 GB, free: 47.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.461e-05/0.6848, allocations: 9.594 kB / 0.5601 GB, free: 47.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002911/0.6851, allocations: 7.906 kB / 0.5601 GB, free: 47.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.6852, allocations: 48 kB / 0.5602 GB, free: 47.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02052/0.7057, allocations: 9.746 MB / 0.5697 GB, free: 37.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.7083, allocations: 1.325 MB / 0.571 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002022/0.7103, allocations: 1.188 MB / 0.5721 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001579/0.7105, allocations: 30.3 kB / 0.5722 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001849/0.7124, allocations: 1.03 MB / 0.5732 GB, free: 34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 7.294e-06/0.7124, allocations: 0 / 0.5732 GB, free: 34 MB / 378.7 MB Notification: Performance of matching and sorting (n=382): time 0.03952/0.7519, allocations: 16.15 MB / 0.5889 GB, free: 17.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.752, allocations: 274.6 kB / 0.5892 GB, free: 17.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1203/0.8723, allocations: 12.88 MB / 0.6018 GB, free: 4.453 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008328/0.8732, allocations: 29.7 kB / 0.6018 GB, free: 4.418 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00267/0.8759, allocations: 1.444 MB / 0.6032 GB, free: 2.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/0.8778, allocations: 1.208 MB / 0.6044 GB, free: 1.734 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005936/0.8784, allocations: 4 kB / 0.6044 GB, free: 1.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.8786, allocations: 433.3 kB / 0.6048 GB, free: 1.301 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002588/0.8812, allocations: 1.172 MB / 0.606 GB, free: 132 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00297/0.8842, allocations: 1.492 MB / 0.6074 GB, free: 14.56 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002729/0.887, allocations: 1.363 MB / 0.6087 GB, free: 13.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/0.887, allocations: 0 / 0.6087 GB, free: 13.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=443) (initialization): time 0.01308/0.9001, allocations: 4.908 MB / 0.6135 GB, free: 8.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.9002, allocations: 4 kB / 0.6135 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.9e-05/0.9002, allocations: 4 kB / 0.6136 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006699/0.9069, allocations: 1.435 MB / 0.615 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/0.9109, allocations: 0.5695 MB / 0.6155 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03004/0.941, allocations: 21.25 MB / 0.6363 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004579/0.9456, allocations: 95.92 kB / 0.6364 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000828/0.9464, allocations: 120 kB / 0.6365 GB, free: 15.69 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 (313): * Single equations (assignments): 304 * Array equations: 0 * 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%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 55} Notification: Performance of prepare postOptimizeDAE: time 0.001243/0.9477, allocations: 153.2 kB / 0.6366 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003277/0.951, allocations: 0.8136 MB / 0.6374 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0142/0.9652, allocations: 4.948 MB / 0.6422 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-05/0.9653, allocations: 36 kB / 0.6423 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-05/0.9653, allocations: 12.56 kB / 0.6423 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-05/0.9654, allocations: 19.92 kB / 0.6423 GB, free: 9.645 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1792/1.145, allocations: 12.92 MB / 0.6549 GB, free: 141.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.145, allocations: 0 / 0.6549 GB, free: 141.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002867/1.148, allocations: 0.5095 MB / 0.6554 GB, free: 141.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005314/1.153, allocations: 1.303 MB / 0.6567 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004659/1.153, allocations: 28.81 kB / 0.6567 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/1.173, allocations: 19.04 MB / 0.6753 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02517/1.199, allocations: 11.7 MB / 0.6867 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01308/1.212, allocations: 7.349 MB / 0.6939 GB, free: 124.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003092/1.215, allocations: 1.589 MB / 0.6955 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001656/1.217, allocations: 18.06 kB / 0.6955 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003429/1.22, allocations: 82.98 kB / 0.6956 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006734/1.221, allocations: 191 kB / 0.6957 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/1.221, allocations: 111.2 kB / 0.6959 GB, free: 123.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.01656/1.238, allocations: 10.28 MB / 0.7059 GB, free: 119.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006697/1.244, allocations: 1.439 MB / 0.7073 GB, free: 119.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET140147876485527.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 (270): * Single equations (assignments): 259 * 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%) 4,(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 {3 47,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.00118/1.246, allocations: 361.5 kB / 0.7076 GB, free: 119.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007003/1.253, allocations: 4.289 MB / 0.7118 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.253, allocations: 0 / 0.7118 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004367/1.257, allocations: 2.887 MB / 0.7146 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003919/1.261, allocations: 396.8 kB / 0.715 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.032/1.293, allocations: 16.71 MB / 0.7313 GB, free: 101 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006722/1.3, allocations: 4.527 MB / 0.7358 GB, free: 97.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/1.3, allocations: 0 / 0.7358 GB, free: 97.75 MB / 426.7 MB Notification: Performance of Templates: time 0.2832/1.583, allocations: 84.6 MB / 0.8184 GB, free: 21.57 MB / 426.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