Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001008/0.001008, allocations: 202.3 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.088/1.088, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009049/0.0009049, allocations: 96.39 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08622/0.08715, allocations: 56.91 MB / 343.2 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07669/0.1639, allocations: 51.47 MB / 394.7 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.3588, allocations: 89.21 MB / 483.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.359, allocations: 84.06 kB / 484 MB, free: 3.938 MB / 346.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.0911/0.4502, allocations: 37.51 MB / 0.5093 GB, free: 3.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.4502, allocations: 8 kB / 0.5093 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005645/0.4508, allocations: 159.9 kB / 0.5095 GB, free: 3.797 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009673/0.4517, allocations: 0.6095 MB / 0.5101 GB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.4519, allocations: 49.94 kB / 0.5101 GB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.452, allocations: 52 kB / 0.5101 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001353/0.4534, allocations: 0.7303 MB / 0.5109 GB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4547, allocations: 0.8019 MB / 0.5116 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.4548, allocations: 7.891 kB / 0.5117 GB, free: 1.496 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.06e-05/0.4549, allocations: 4 kB / 0.5117 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.4549, allocations: 27.94 kB / 0.5117 GB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.4599, allocations: 3.407 MB / 0.515 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/0.4607, allocations: 494.5 kB / 0.5155 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000671/0.4613, allocations: 427.6 kB / 0.5159 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.027e-05/0.4614, allocations: 12.44 kB / 0.5159 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.4614, allocations: 55 kB / 0.516 GB, free: 12.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 1.964e-06/0.4614, allocations: 0 / 0.516 GB, free: 12.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.006837/0.4683, allocations: 3.633 MB / 0.5195 GB, free: 9.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.4684, allocations: 90.2 kB / 0.5196 GB, free: 9.012 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005603/0.4689, allocations: 474.1 kB / 0.52 GB, free: 8.539 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.469, allocations: 25.7 kB / 0.5201 GB, free: 8.508 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.4692, allocations: 344.9 kB / 0.5204 GB, free: 8.164 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.4695, allocations: 425.5 kB / 0.5208 GB, free: 7.742 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.4695, allocations: 4 kB / 0.5208 GB, free: 7.738 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.4697, allocations: 390.7 kB / 0.5212 GB, free: 7.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006114/0.4703, allocations: 346.6 kB / 0.5215 GB, free: 7.012 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006949/0.471, allocations: 485.9 kB / 0.522 GB, free: 6.504 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/0.4717, allocations: 401.9 kB / 0.5224 GB, free: 6.109 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4717, allocations: 0.6562 kB / 0.5224 GB, free: 6.109 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001894/0.4736, allocations: 1.103 MB / 0.5234 GB, free: 4.988 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.4736, allocations: 8 kB / 0.5234 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4736, allocations: 0 / 0.5234 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004124/0.4741, allocations: 152.8 kB / 0.5236 GB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.4754, allocations: 291.6 kB / 0.5239 GB, free: 4.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003708/0.4791, allocations: 4.543 MB / 0.5283 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.4799, allocations: 64.02 kB / 0.5284 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.392e-05/0.48, allocations: 41.7 kB / 0.5284 GB, free: 15.54 MB / 410.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.0001805/0.4802, allocations: 124.7 kB / 0.5285 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.4804, allocations: 90.91 kB / 0.5286 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/0.4817, allocations: 0.724 MB / 0.5293 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.4817, allocations: 12 kB / 0.5293 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4817, allocations: 4 kB / 0.5293 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.4817, allocations: 3.984 kB / 0.5293 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.4856, allocations: 2.734 MB / 0.532 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.4856, allocations: 4 kB / 0.532 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4868, allocations: 260 kB / 0.5323 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/0.4872, allocations: 122.4 kB / 0.5324 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.388e-05/0.4872, allocations: 15.98 kB / 0.5324 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.4901, allocations: 4.162 MB / 0.5364 GB, free: 6.801 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4902, allocations: 7.938 kB / 0.5365 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002426/0.4926, allocations: 1.857 MB / 0.5383 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003214/0.4958, allocations: 2.745 MB / 0.5409 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.496, allocations: 164.1 kB / 0.5411 GB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.4961, allocations: 11.89 kB / 0.5411 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/0.4969, allocations: 63.95 kB / 0.5412 GB, free: 1.691 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.497, allocations: 72.73 kB / 0.5412 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.787e-05/0.4971, allocations: 39.98 kB / 0.5413 GB, free: 1.582 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003862/0.4975, allocations: 358.9 kB / 0.5416 GB, free: 1.234 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001456/0.499, allocations: 228 kB / 0.5418 GB, free: 1.012 MB / 410.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.0002184/0.4992, allocations: 153.8 kB / 0.542 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.501, allocations: 1.261 MB / 0.5432 GB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.501, allocations: 4 kB / 0.5432 GB, free: 15.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.5021, allocations: 0.8432 MB / 0.5441 GB, free: 14.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007462/0.5028, allocations: 126.3 kB / 0.5442 GB, free: 14.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.5059, allocations: 1.758 MB / 0.5459 GB, free: 12.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008844/0.5068, allocations: 1.17 MB / 0.547 GB, free: 11.56 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5068, allocations: 4 kB / 0.547 GB, free: 11.56 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)