Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.002439/0.002439, allocations: 179.9 kB / 8.153 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001323/0.001322, allocations: 86.2 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.056e-05, allocations: 0 / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2429, allocations: 47.56 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1531/0.396, allocations: 91.66 MB / 453.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003881/0.3965, allocations: 79.95 kB / 453.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5024/0.8989, allocations: 76.62 MB / 0.5178 GB, free: 99.74 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001101/0.9001, allocations: 119.8 kB / 0.5179 GB, free: 99.73 MB / 394.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.01828/0.9184, allocations: 5.563 MB / 0.5233 GB, free: 96.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.9184, allocations: 10.53 kB / 0.5233 GB, free: 96.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002676/0.9211, allocations: 0.8481 MB / 0.5241 GB, free: 96.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/0.9341, allocations: 3.554 MB / 0.5276 GB, free: 95.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.9344, allocations: 73.62 kB / 0.5277 GB, free: 95.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008061/0.9352, allocations: 119.4 kB / 0.5278 GB, free: 95.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007053/0.9423, allocations: 1.677 MB / 0.5294 GB, free: 95.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007473/0.9498, allocations: 1.723 MB / 0.5311 GB, free: 95.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.95, allocations: 19.25 kB / 0.5311 GB, free: 95.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.9503, allocations: 0 / 0.5311 GB, free: 95.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.038e-05/0.9503, allocations: 51.34 kB / 0.5312 GB, free: 95.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03334/0.9837, allocations: 9.753 MB / 0.5407 GB, free: 91.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004838/0.9886, allocations: 1.325 MB / 0.542 GB, free: 90.83 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004406/0.9931, allocations: 1.181 MB / 0.5432 GB, free: 90.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/0.9935, allocations: 42.14 kB / 0.5432 GB, free: 90.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003645/0.9971, allocations: 1.03 MB / 0.5442 GB, free: 89.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=246): time 8.235e-06/0.9972, allocations: 0 / 0.5442 GB, free: 89.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=382): time 0.07461/1.072, allocations: 16.15 MB / 0.56 GB, free: 77.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/1.072, allocations: 278.6 kB / 0.5602 GB, free: 76.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1771/1.249, allocations: 12.88 MB / 0.5728 GB, free: 65.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000912/1.25, allocations: 25.7 kB / 0.5728 GB, free: 65.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005249/1.251, allocations: 0.5927 MB / 0.5734 GB, free: 64.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002468/1.253, allocations: 1.209 MB / 0.5746 GB, free: 63.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007625/1.254, allocations: 1.875 kB / 0.5746 GB, free: 63.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003153/1.254, allocations: 446.2 kB / 0.575 GB, free: 63.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004263/1.259, allocations: 1.167 MB / 0.5762 GB, free: 62.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004901/1.264, allocations: 1.492 MB / 0.5776 GB, free: 60.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004882/1.269, allocations: 1.371 MB / 0.579 GB, free: 59.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-05/1.269, allocations: 0 / 0.579 GB, free: 59.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=443) (initialization): time 0.01904/1.288, allocations: 4.228 MB / 0.5831 GB, free: 54.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/1.288, allocations: 10.97 kB / 0.5831 GB, free: 54.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/1.288, allocations: 4 kB / 0.5831 GB, free: 54.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01044/1.298, allocations: 1.386 MB / 0.5845 GB, free: 53.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006275/1.305, allocations: 0.5695 MB / 0.585 GB, free: 52.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04286/1.348, allocations: 21.2 MB / 0.6057 GB, free: 30.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/1.352, allocations: 95.89 kB / 0.6058 GB, free: 30.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003943/1.352, allocations: 116 kB / 0.6059 GB, free: 30.57 MB / 394.7 MB 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 {(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(3,77.8%) 2,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {4 41,6 52} Notification: Performance of prepare postOptimizeDAE: time 0.0007637/1.353, allocations: 77.14 kB / 0.606 GB, free: 30.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002866/1.356, allocations: 0.8175 MB / 0.6068 GB, free: 29.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02207/1.378, allocations: 4.959 MB / 0.6116 GB, free: 24.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.594e-05/1.378, allocations: 36 kB / 0.6117 GB, free: 24.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.173e-05/1.378, allocations: 4 kB / 0.6117 GB, free: 24.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/1.378, allocations: 23.92 kB / 0.6117 GB, free: 24.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04539/1.424, allocations: 12.92 MB / 0.6243 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.037e-05/1.424, allocations: 8.031 kB / 0.6243 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005765/1.43, allocations: 0.5071 MB / 0.6248 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009953/1.44, allocations: 1.299 MB / 0.6261 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009171/1.441, allocations: 31.95 kB / 0.6261 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0393/1.48, allocations: 19.03 MB / 0.6447 GB, free: 5.762 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1991/1.679, allocations: 11.7 MB / 0.6561 GB, free: 139.2 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02551/1.705, allocations: 7.343 MB / 0.6633 GB, free: 138.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004789/1.709, allocations: 1.588 MB / 0.6649 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00294/1.712, allocations: 6.812 kB / 0.6649 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006461/1.719, allocations: 91.03 kB / 0.6649 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/1.72, allocations: 195.8 kB / 0.6651 GB, free: 137.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004369/1.72, allocations: 105 kB / 0.6652 GB, free: 137.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0251/1.746, allocations: 10.29 MB / 0.6753 GB, free: 136.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007678/1.753, allocations: 1.429 MB / 0.6767 GB, free: 136.6 MB / 410.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,$STATESET140717233143400.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.001714/1.755, allocations: 361.5 kB / 0.677 GB, free: 136.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01161/1.767, allocations: 4.3 MB / 0.6812 GB, free: 134.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.767, allocations: 3.875 kB / 0.6812 GB, free: 134.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007897/1.775, allocations: 2.883 MB / 0.684 GB, free: 132.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006379/1.781, allocations: 403.2 kB / 0.6844 GB, free: 132.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05343/1.835, allocations: 17.05 MB / 0.7011 GB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01284/1.848, allocations: 4.599 MB / 0.7056 GB, free: 120.3 MB / 410.7 MB Notification: Performance of SimCode: time 3.296e-06/1.848, allocations: 0 / 0.7056 GB, free: 120.3 MB / 410.7 MB Notification: Performance of Templates: time 2.058/3.905, allocations: 0.5347 GB / 1.24 GB, free: 138 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches