Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001014/0.001014, allocations: 187.3 kB / 8.48 MB, free: 1.859 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.168/1.168, allocations: 205.2 MB / 214.1 MB, free: 5.508 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008003/0.0008003, allocations: 87.38 kB / 262.1 MB, free: 5.562 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.58e-06/5.62e-06, allocations: 0 / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06689/0.06691, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2333/0.3003, allocations: 86.04 MB / 448.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/0.3005, allocations: 80.73 kB / 448.7 MB, free: 10.02 MB / 314.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.08923/0.3897, allocations: 35.44 MB / 484.1 MB, free: 8.539 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.57e-05/0.3898, allocations: 23.94 kB / 484.1 MB, free: 8.516 MB / 330.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.002401/0.3922, allocations: 1.162 MB / 485.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.3923, allocations: 8.031 kB / 485.3 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.3925, allocations: 126.6 kB / 485.4 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.3936, allocations: 0.6078 MB / 486 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.3937, allocations: 42 kB / 486.1 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.3938, allocations: 59.94 kB / 486.1 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001366/0.3952, allocations: 0.7298 MB / 486.9 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3966, allocations: 0.8009 MB / 487.7 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.3967, allocations: 7.906 kB / 487.7 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.3967, allocations: 4 kB / 487.7 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.3968, allocations: 24 kB / 487.7 MB, free: 5.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005523/0.4023, allocations: 3.417 MB / 491.1 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007642/0.4031, allocations: 493.3 kB / 491.6 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007377/0.4039, allocations: 423.6 kB / 492 MB, free: 1.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.417e-05/0.4039, allocations: 12.48 kB / 492 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.404, allocations: 59 kB / 492.1 MB, free: 1.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=95): time 2.855e-06/0.404, allocations: 0 / 492.1 MB, free: 1.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.007195/0.4112, allocations: 3.644 MB / 495.7 MB, free: 13.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.4113, allocations: 90.2 kB / 495.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006015/0.4119, allocations: 466.1 kB / 496.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.323e-05/0.4119, allocations: 29.7 kB / 496.3 MB, free: 13.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.4121, allocations: 344.2 kB / 496.6 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003117/0.4124, allocations: 433.5 kB / 497.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.4125, allocations: 0 / 497.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4127, allocations: 394.7 kB / 497.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000602/0.4133, allocations: 346.6 kB / 497.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007511/0.4141, allocations: 482 kB / 498.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007328/0.4148, allocations: 401.2 kB / 498.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4148, allocations: 0 / 498.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001939/0.4168, allocations: 1.106 MB / 499.7 MB, free: 9.824 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.4168, allocations: 8 kB / 499.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.4168, allocations: 0 / 499.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004289/0.4172, allocations: 146.5 kB / 499.9 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.4186, allocations: 291.6 kB / 0.4885 GB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/0.4227, allocations: 4.528 MB / 0.4929 GB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.4238, allocations: 68 kB / 0.4929 GB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.4239, allocations: 43.98 kB / 0.493 GB, free: 4.398 MB / 346.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.0002184/0.4241, allocations: 129.8 kB / 0.4931 GB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.4243, allocations: 86.97 kB / 0.4932 GB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.4257, allocations: 0.7153 MB / 0.4939 GB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.4257, allocations: 12 kB / 0.4939 GB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.4257, allocations: 4 kB / 0.4939 GB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/0.4258, allocations: 7.969 kB / 0.4939 GB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/0.4298, allocations: 2.737 MB / 0.4966 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4299, allocations: 4 kB / 0.4966 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.4311, allocations: 260 kB / 0.4968 GB, free: 364 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.4315, allocations: 130.4 kB / 0.497 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/0.4316, allocations: 15.98 kB / 0.497 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.4348, allocations: 4.151 MB / 0.501 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.4349, allocations: 8.141 kB / 0.501 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002872/0.4377, allocations: 1.861 MB / 0.5029 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.4381, allocations: 164 kB / 0.503 GB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.4382, allocations: 7.938 kB / 0.503 GB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007854/0.439, allocations: 75.88 kB / 0.5031 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.4392, allocations: 76.45 kB / 0.5032 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.4393, allocations: 39.98 kB / 0.5032 GB, free: 9.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005239/0.4398, allocations: 355 kB / 0.5035 GB, free: 9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001078/0.4409, allocations: 224 kB / 0.5038 GB, free: 8.781 MB / 362.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.000253/0.4411, allocations: 138.8 kB / 0.5039 GB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.4433, allocations: 1.265 MB / 0.5051 GB, free: 7.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4433, allocations: 0 / 0.5051 GB, free: 7.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.4444, allocations: 0.847 MB / 0.506 GB, free: 6.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008636/0.4453, allocations: 128.2 kB / 0.5061 GB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.4489, allocations: 1.746 MB / 0.5078 GB, free: 4.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.45, allocations: 1.154 MB / 0.5089 GB, free: 3.359 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.45, allocations: 4 kB / 0.5089 GB, free: 3.355 MB / 362.7 MB Notification: Performance of Templates: time 0.02254/0.4725, allocations: 12.79 MB / 0.5214 GB, free: 6.598 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches