Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001639/0.001639, allocations: 193.1 kB / 8.139 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.096/1.096, allocations: 194.2 MB / 202.8 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001752/0.001752, allocations: 121.6 kB / 247.7 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.163e-06/7.193e-06, allocations: 4 kB / 297.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07375/0.07377, allocations: 44.48 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2066/0.2805, allocations: 81.77 MB / 423.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.2807, allocations: 85.02 kB / 423.9 MB, free: 13.24 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Magnetic/FluxTubes.mo:1375:11-1375:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd: time 0.09486/0.3756, allocations: 35.22 MB / 459.1 MB, free: 0.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.132e-05/0.3757, allocations: 20 kB / 459.1 MB, free: 0.6484 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.00278/0.3784, allocations: 1.169 MB / 460.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.34e-05/0.3785, allocations: 8.031 kB / 460.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003492/0.3789, allocations: 122.6 kB / 460.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.38, allocations: 0.6108 MB / 461.1 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.3802, allocations: 45.31 kB / 461.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.3804, allocations: 59.91 kB / 461.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001601/0.382, allocations: 0.727 MB / 461.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3836, allocations: 0.8017 MB / 462.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.3837, allocations: 11.59 kB / 462.7 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.153e-05/0.3837, allocations: 0 / 462.7 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.3838, allocations: 28 kB / 462.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005626/0.3894, allocations: 3.392 MB / 466.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008041/0.3902, allocations: 0.4932 MB / 466.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007612/0.391, allocations: 437.7 kB / 467 MB, free: 9.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.088e-05/0.3911, allocations: 17.11 kB / 467.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.3911, allocations: 47.06 kB / 467.1 MB, free: 9.594 MB / 346.7 MB Notification: Performance of pre-optimization done (n=95): time 2.214e-06/0.3911, allocations: 0 / 467.1 MB, free: 9.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.007393/0.3985, allocations: 3.624 MB / 470.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3986, allocations: 90.2 kB / 470.8 MB, free: 5.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/0.3992, allocations: 466.1 kB / 471.3 MB, free: 5.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.3993, allocations: 33.7 kB / 471.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.3995, allocations: 348.2 kB / 471.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/0.3998, allocations: 421.6 kB / 472.1 MB, free: 4.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.519e-05/0.3999, allocations: 0 / 472.1 MB, free: 4.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.4001, allocations: 398.6 kB / 472.4 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006216/0.4007, allocations: 346.6 kB / 472.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.4014, allocations: 485.9 kB / 473.3 MB, free: 3.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007329/0.4022, allocations: 401.2 kB / 473.6 MB, free: 2.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4022, allocations: 0 / 473.6 MB, free: 2.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001999/0.4042, allocations: 1.107 MB / 474.8 MB, free: 1.652 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4042, allocations: 8 kB / 474.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.4042, allocations: 11.88 kB / 474.8 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/0.4047, allocations: 150.6 kB / 474.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.4061, allocations: 295.6 kB / 475.2 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.4101, allocations: 4.533 MB / 479.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009407/0.4111, allocations: 68 kB / 479.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.4112, allocations: 39.98 kB / 479.8 MB, free: 12.2 MB / 362.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.0002101/0.4114, allocations: 124.6 kB / 480 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.4117, allocations: 94.88 kB / 480.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.4131, allocations: 0.7086 MB / 480.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.4131, allocations: 12 kB / 480.8 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.4131, allocations: 7.906 kB / 480.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.4131, allocations: 11.91 kB / 480.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00436/0.4175, allocations: 2.739 MB / 483.5 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.4175, allocations: 4 kB / 483.5 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.4188, allocations: 263.9 kB / 483.8 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.4192, allocations: 118.5 kB / 483.9 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.4e-05/0.4193, allocations: 15.98 kB / 483.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003078/0.4223, allocations: 4.159 MB / 488.1 MB, free: 3.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.4224, allocations: 4.047 kB / 488.1 MB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002793/0.4252, allocations: 1.864 MB / 490 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.4255, allocations: 164 kB / 490.1 MB, free: 1.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.4257, allocations: 15.92 kB / 490.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008619/0.4265, allocations: 63.95 kB / 490.2 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.4267, allocations: 76.39 kB / 490.3 MB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.4268, allocations: 43.98 kB / 490.3 MB, free: 1.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004615/0.4273, allocations: 355 kB / 490.7 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001072/0.4283, allocations: 220 kB / 490.9 MB, free: 0.5312 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.0002306/0.4286, allocations: 136.1 kB / 491 MB, free: 400 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.4306, allocations: 1.261 MB / 492.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4306, allocations: 4.062 kB / 492.3 MB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.4318, allocations: 0.8432 MB / 493.1 MB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008376/0.4327, allocations: 120.3 kB / 493.2 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.4364, allocations: 1.748 MB / 495 MB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.4374, allocations: 1.154 MB / 496.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4374, allocations: 0 / 496.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of Templates: time 0.02399/0.4614, allocations: 12.81 MB / 0.497 GB, free: 14.34 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)