Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [: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.001037/0.001037, allocations: 180.8 kB / 8.135 MB, free: 2.215 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.158/1.158, allocations: 221.4 MB / 229.9 MB, free: 3.113 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.001006/0.001006, allocations: 101.6 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09042/0.09146, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.263, allocations: 50.39 MB / 387 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08515/0.3482, allocations: 88.4 MB / 475.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.3484, allocations: 84.89 kB / 475.5 MB, free: 14.35 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Magnetic/FluxTubes/Examples/MovingCoilActuator/Components/ConstantActuator.mo:67:3-67:83:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. 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.2288/0.5772, allocations: 37.62 MB / 0.5011 GB, free: 93.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.5772, allocations: 10.75 kB / 0.5011 GB, free: 93.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.5775, allocations: 118.1 kB / 0.5012 GB, free: 93.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008588/0.5783, allocations: 0.6137 MB / 0.5018 GB, free: 92.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.5785, allocations: 46.94 kB / 0.5018 GB, free: 92.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.5786, allocations: 55.56 kB / 0.5019 GB, free: 92.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001233/0.5798, allocations: 0.738 MB / 0.5026 GB, free: 92.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.5811, allocations: 0.7979 MB / 0.5034 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.5811, allocations: 7.781 kB / 0.5034 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.5812, allocations: 0 / 0.5034 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.5813, allocations: 24.91 kB / 0.5034 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004437/0.5857, allocations: 3.402 MB / 0.5068 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.5864, allocations: 493.2 kB / 0.5072 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.587, allocations: 432 kB / 0.5076 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.422e-05/0.5871, allocations: 19.12 kB / 0.5077 GB, free: 91.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.5871, allocations: 44.91 kB / 0.5077 GB, free: 91.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 2.414e-06/0.5871, allocations: 0 / 0.5077 GB, free: 91.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.006125/0.5932, allocations: 3.647 MB / 0.5113 GB, free: 89.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.5933, allocations: 89.67 kB / 0.5113 GB, free: 89.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.5938, allocations: 467.1 kB / 0.5118 GB, free: 89.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/0.5938, allocations: 25.7 kB / 0.5118 GB, free: 89.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.5939, allocations: 343.6 kB / 0.5121 GB, free: 89.13 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.5941, allocations: 430.4 kB / 0.5126 GB, free: 88.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.543e-05/0.5942, allocations: 2.656 kB / 0.5126 GB, free: 88.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.701e-05/0.5943, allocations: 390.4 kB / 0.5129 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005326/0.5948, allocations: 347.4 kB / 0.5133 GB, free: 88.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005796/0.5954, allocations: 485.2 kB / 0.5137 GB, free: 88.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005932/0.596, allocations: 405.9 kB / 0.5141 GB, free: 87.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.596, allocations: 3.906 kB / 0.5141 GB, free: 87.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001668/0.5977, allocations: 1.105 MB / 0.5152 GB, free: 87.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.5977, allocations: 4.125 kB / 0.5152 GB, free: 87.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5978, allocations: 7.781 kB / 0.5152 GB, free: 87.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003718/0.5981, allocations: 144 kB / 0.5153 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.5994, allocations: 293.9 kB / 0.5156 GB, free: 87.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00285/0.6022, allocations: 4.534 MB / 0.5201 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008067/0.6031, allocations: 57.67 kB / 0.5201 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.6032, allocations: 49.08 kB / 0.5202 GB, free: 83.02 MB / 378.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.0001774/0.6034, allocations: 131.5 kB / 0.5203 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.6036, allocations: 91.72 kB / 0.5204 GB, free: 82.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.605, allocations: 0.7056 MB / 0.5211 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/0.6051, allocations: 12.88 kB / 0.5211 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.6051, allocations: 3.938 kB / 0.5211 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.6051, allocations: 7.953 kB / 0.5211 GB, free: 82.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003481/0.6086, allocations: 2.739 MB / 0.5238 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-06/0.6086, allocations: 4.062 kB / 0.5238 GB, free: 80.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.6098, allocations: 259.5 kB / 0.524 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/0.6101, allocations: 125.3 kB / 0.5241 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.46e-05/0.6102, allocations: 15.8 kB / 0.5241 GB, free: 80.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.6124, allocations: 4.166 MB / 0.5282 GB, free: 76.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6124, allocations: 4 kB / 0.5282 GB, free: 76.37 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002136/0.6146, allocations: 1.861 MB / 0.53 GB, free: 74.46 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002758/0.6173, allocations: 2.749 MB / 0.5327 GB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.6175, allocations: 163.4 kB / 0.5329 GB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.6176, allocations: 4.656 kB / 0.5329 GB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007764/0.6184, allocations: 75.52 kB / 0.5329 GB, free: 71.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.6185, allocations: 70.28 kB / 0.533 GB, free: 71.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-05/0.6186, allocations: 39.8 kB / 0.533 GB, free: 71.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000349/0.619, allocations: 358.1 kB / 0.5334 GB, free: 71.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001538/0.6205, allocations: 220 kB / 0.5336 GB, free: 70.82 MB / 378.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.000217/0.6207, allocations: 137.4 kB / 0.5337 GB, free: 70.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.6224, allocations: 1.256 MB / 0.535 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6225, allocations: 0 / 0.535 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000911/0.6234, allocations: 0.855 MB / 0.5358 GB, free: 68.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.6241, allocations: 135.8 kB / 0.5359 GB, free: 68.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.6271, allocations: 1.768 MB / 0.5376 GB, free: 66.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007285/0.6278, allocations: 1.155 MB / 0.5388 GB, free: 65.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.6278, allocations: 0 / 0.5388 GB, free: 65.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)