Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") [: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.002401/0.0024, allocations: 175.5 kB / 8.153 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.2 MB / 213.8 MB, free: 13.91 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.001254/0.001253, allocations: 84.03 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/8.085e-06, allocations: 0 / 314.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2354, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.145/0.3804, allocations: 86.04 MB / 447.9 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003805/0.3809, allocations: 83.95 kB / 448 MB, free: 15.91 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd: time 0.1852/0.566, allocations: 35.45 MB / 483.4 MB, free: 12.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.448e-05/0.5662, allocations: 20 kB / 483.4 MB, free: 12.41 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.004575/0.5708, allocations: 1.174 MB / 484.6 MB, free: 11.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/0.5709, allocations: 16.03 kB / 484.6 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007382/0.5716, allocations: 118.6 kB / 484.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.5741, allocations: 0.6017 MB / 485.3 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/0.5744, allocations: 49.98 kB / 485.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/0.5747, allocations: 56 kB / 485.4 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002914/0.5776, allocations: 0.7264 MB / 486.2 MB, free: 9.586 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002836/0.5805, allocations: 0.8058 MB / 487 MB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-05/0.5807, allocations: 7.906 kB / 487 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.5809, allocations: 0 / 487 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.821e-05/0.5809, allocations: 24 kB / 487 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/0.593, allocations: 3.408 MB / 490.4 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.5949, allocations: 493.3 kB / 490.9 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.5964, allocations: 423.6 kB / 491.3 MB, free: 4.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.353e-05/0.5965, allocations: 20.48 kB / 491.3 MB, free: 4.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.575e-05/0.5966, allocations: 45.25 kB / 491.4 MB, free: 4.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 6.592e-06/0.5966, allocations: 3.938 kB / 491.4 MB, free: 4.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.01482/0.6114, allocations: 3.637 MB / 495 MB, free: 376 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.6116, allocations: 102.1 kB / 495.1 MB, free: 256 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.6132, allocations: 462.1 kB / 495.6 MB, free: 15.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003038/0.6136, allocations: 25.7 kB / 495.6 MB, free: 15.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.6139, allocations: 378.7 kB / 496 MB, free: 15.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007206/0.6147, allocations: 437.4 kB / 496.4 MB, free: 14.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.706e-05/0.6148, allocations: 0 / 496.4 MB, free: 14.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.615, allocations: 350.8 kB / 496.7 MB, free: 14.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.6163, allocations: 342.6 kB / 497.1 MB, free: 14.26 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.6176, allocations: 486 kB / 497.5 MB, free: 13.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.619, allocations: 405.2 kB / 497.9 MB, free: 13.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.619, allocations: 0 / 497.9 MB, free: 13.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004034/0.6231, allocations: 1.065 MB / 499 MB, free: 12.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.6232, allocations: 6.969 kB / 499 MB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-05/0.6232, allocations: 7.984 kB / 499 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009174/0.6242, allocations: 130.6 kB / 499.1 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/0.6272, allocations: 299.6 kB / 499.4 MB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006883/0.6341, allocations: 4.516 MB / 0.4921 GB, free: 6.965 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.6358, allocations: 56.02 kB / 0.4922 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002216/0.6361, allocations: 43.98 kB / 0.4922 GB, free: 6.867 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003757/0.6365, allocations: 69.48 kB / 0.4923 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/0.6369, allocations: 86.97 kB / 0.4924 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.6395, allocations: 0.7124 MB / 0.4931 GB, free: 5.984 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.6396, allocations: 12 kB / 0.4931 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.6396, allocations: 4 kB / 0.4931 GB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-05/0.6396, allocations: 7.969 kB / 0.4931 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009872/0.6495, allocations: 2.735 MB / 0.4958 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/0.6496, allocations: 7.984 kB / 0.4958 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002651/0.6522, allocations: 259.8 kB / 0.496 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.6534, allocations: 118.5 kB / 0.4961 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000289/0.6537, allocations: 12 kB / 0.4961 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1467/0.8004, allocations: 4.163 MB / 0.5002 GB, free: 149 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.8004, allocations: 3.969 kB / 0.5002 GB, free: 149 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005337/0.8058, allocations: 1.863 MB / 0.502 GB, free: 148.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.8062, allocations: 165.7 kB / 0.5022 GB, free: 148.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.8065, allocations: 7.406 kB / 0.5022 GB, free: 148.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.8081, allocations: 66.78 kB / 0.5023 GB, free: 148.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.8083, allocations: 71.52 kB / 0.5023 GB, free: 148.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.8084, allocations: 36.22 kB / 0.5024 GB, free: 148.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006805/0.8091, allocations: 366 kB / 0.5027 GB, free: 148.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001638/0.8108, allocations: 223.4 kB / 0.5029 GB, free: 148.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.g_ma.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000348/0.8112, allocations: 139 kB / 0.5031 GB, free: 148.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004173/0.8154, allocations: 1.248 MB / 0.5043 GB, free: 147.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/0.8154, allocations: 0 / 0.5043 GB, free: 147.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001999/0.8174, allocations: 0.8475 MB / 0.5051 GB, free: 147.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.8192, allocations: 135.6 kB / 0.5052 GB, free: 147.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006915/0.8261, allocations: 1.783 MB / 0.507 GB, free: 147.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/0.8276, allocations: 1.156 MB / 0.5081 GB, free: 146.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.933e-06/0.8276, allocations: 0 / 0.5081 GB, free: 146.4 MB / 394.7 MB Notification: Performance of Templates: time 0.04958/0.8772, allocations: 26.84 MB / 0.5343 GB, free: 141.8 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches