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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009319/0.000932, allocations: 175.3 kB / 8.476 MB, free: 1.875 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.016/1.016, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.0008687/0.0008687, allocations: 89.22 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08591/0.08681, allocations: 52.99 MB / 315.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.2625, allocations: 47.55 MB / 362.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08684/0.3494, allocations: 86.04 MB / 448.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.3496, allocations: 81.95 kB / 448.7 MB, free: 15.84 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: 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.09735/0.447, allocations: 36.65 MB / 485.4 MB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.447, allocations: 12 kB / 485.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.4473, allocations: 118.6 kB / 485.5 MB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.4485, allocations: 0.6095 MB / 486.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.4486, allocations: 50 kB / 486.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.4488, allocations: 60 kB / 486.2 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001492/0.4503, allocations: 0.7225 MB / 487 MB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.4518, allocations: 0.8058 MB / 487.8 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.4518, allocations: 3.906 kB / 487.8 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-05/0.4519, allocations: 0 / 487.8 MB, free: 8.688 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.4519, allocations: 24 kB / 487.8 MB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005175/0.4571, allocations: 3.408 MB / 491.2 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007409/0.4579, allocations: 497.2 kB / 491.7 MB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006647/0.4585, allocations: 431.6 kB / 492.1 MB, free: 4.188 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.374e-05/0.4586, allocations: 12.5 kB / 492.1 MB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.4586, allocations: 45.25 kB / 492.2 MB, free: 4.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 2.274e-06/0.4587, allocations: 4 kB / 492.2 MB, free: 4.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.006771/0.4654, allocations: 3.641 MB / 495.8 MB, free: 296 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.4655, allocations: 94.2 kB / 495.9 MB, free: 184 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005753/0.4661, allocations: 462.1 kB / 496.4 MB, free: 15.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.715e-05/0.4661, allocations: 29.64 kB / 496.4 MB, free: 15.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.4663, allocations: 348.3 kB / 496.7 MB, free: 15.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002885/0.4666, allocations: 433.5 kB / 497.1 MB, free: 14.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.002e-05/0.4667, allocations: 3.938 kB / 497.2 MB, free: 14.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4668, allocations: 390.7 kB / 497.5 MB, free: 14.51 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005842/0.4674, allocations: 342.6 kB / 497.9 MB, free: 14.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007203/0.4682, allocations: 486 kB / 498.3 MB, free: 13.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.4688, allocations: 397.2 kB / 498.7 MB, free: 13.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4688, allocations: 4 kB / 498.7 MB, free: 13.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001857/0.4707, allocations: 1.111 MB / 499.8 MB, free: 12.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.4707, allocations: 6.969 kB / 499.9 MB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4708, allocations: 4 kB / 499.9 MB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004099/0.4712, allocations: 142.5 kB / 500 MB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.4725, allocations: 299.6 kB / 0.4886 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003703/0.4762, allocations: 4.529 MB / 0.493 GB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.477, allocations: 68 kB / 0.493 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-05/0.4771, allocations: 43.98 kB / 0.4931 GB, free: 6.711 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.0001853/0.4773, allocations: 128.6 kB / 0.4932 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4775, allocations: 86.97 kB / 0.4933 GB, free: 6.492 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.4787, allocations: 0.7124 MB / 0.494 GB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.4788, allocations: 12 kB / 0.494 GB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4788, allocations: 4 kB / 0.494 GB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.4788, allocations: 7.969 kB / 0.494 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/0.4826, allocations: 2.739 MB / 0.4967 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4827, allocations: 0 / 0.4967 GB, free: 2.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.4838, allocations: 259.8 kB / 0.4969 GB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003656/0.4842, allocations: 126.5 kB / 0.4971 GB, free: 2.508 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-05/0.4842, allocations: 7.984 kB / 0.4971 GB, free: 2.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09453/0.5788, allocations: 4.163 MB / 0.5011 GB, free: 148.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.5788, allocations: 3.094 kB / 0.5011 GB, free: 148.6 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002168/0.581, allocations: 1.863 MB / 0.503 GB, free: 148.1 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002605/0.5836, allocations: 2.746 MB / 0.5056 GB, free: 147.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.5838, allocations: 168.6 kB / 0.5058 GB, free: 147.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.5839, allocations: 18.83 kB / 0.5058 GB, free: 147.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.5847, allocations: 58.95 kB / 0.5059 GB, free: 147.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.5848, allocations: 78.17 kB / 0.5059 GB, free: 147.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.15e-05/0.5849, allocations: 30.5 kB / 0.506 GB, free: 147.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003567/0.5852, allocations: 365.8 kB / 0.5063 GB, free: 147 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001411/0.5866, allocations: 221.9 kB / 0.5065 GB, free: 147 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.0001896/0.5868, allocations: 133 kB / 0.5067 GB, free: 146.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.5884, allocations: 1.263 MB / 0.5079 GB, free: 146.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.5884, allocations: 0 / 0.5079 GB, free: 146.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008515/0.5893, allocations: 0.8427 MB / 0.5087 GB, free: 146.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006972/0.59, allocations: 127.3 kB / 0.5088 GB, free: 146.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.5929, allocations: 1.757 MB / 0.5106 GB, free: 145.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006874/0.5936, allocations: 1.158 MB / 0.5117 GB, free: 145.2 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5936, allocations: 0 / 0.5117 GB, free: 145.2 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)