Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005749/0.005755, allocations: 104.8 kB / 15.74 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 199.1 kB / 16.68 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 50.34 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09574, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01193/0.1077, allocations: 10.98 MB / 384.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008251/0.116, allocations: 3.546 MB / 387.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002523/0.1186, allocations: 39.88 kB / 387.7 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008123/0.1267, allocations: 8.132 MB / 395.9 MB, free: 10.53 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.00735/0.1341, allocations: 4.628 MB / 400.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00269/0.1369, allocations: 0.9167 MB / 401.4 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007278/0.1442, allocations: 5.315 MB / 406.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.146, allocations: 0.8904 MB / 407.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004334/0.1504, allocations: 2.853 MB / 410.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00573/0.1561, allocations: 5.127 MB / 415.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00106/0.1572, allocations: 352 kB / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.1584, allocations: 388 kB / 416.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001633/0.16, allocations: 1.869 MB / 418.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003507/0.1635, allocations: 2.792 MB / 421 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007323/0.1709, allocations: 7.235 MB / 428.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.1709, allocations: 0 / 428.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.171, allocations: 0 / 428.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002975/0.1713, allocations: 0 / 428.2 MB, free: 10.04 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.0144/0.1857, allocations: 7.655 MB / 435.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.203e-05/0.1858, allocations: 11.89 kB / 435.9 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.1872, allocations: 0.8455 MB / 436.7 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005054/0.1922, allocations: 3.179 MB / 439.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.1924, allocations: 156.5 kB / 440.1 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/0.1928, allocations: 216 kB / 440.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004084/0.1969, allocations: 2.108 MB / 442.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-05/0.1969, allocations: 4 kB / 442.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/0.1971, allocations: 87.94 kB / 442.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-05/0.1972, allocations: 52 kB / 442.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003823/0.201, allocations: 1.895 MB / 444.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01579/0.2168, allocations: 8.88 MB / 453.3 MB, free: 492 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2002/0.4171, allocations: 2.317 MB / 455.6 MB, free: 66.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003352/0.4205, allocations: 1.416 MB / 457 MB, free: 66.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.4207, allocations: 38.05 kB / 457.1 MB, free: 66.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002982/0.4237, allocations: 1.159 MB / 458.2 MB, free: 66.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 7.434e-06/0.4237, allocations: 0.8125 kB / 458.2 MB, free: 66.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06287/0.4866, allocations: 22.81 MB / 481 MB, free: 54.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02527/0.5119, allocations: 13.61 MB / 494.6 MB, free: 40.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/0.5242, allocations: 14.9 MB / 0.4976 GB, free: 25.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007313/0.5249, allocations: 81.7 kB / 0.4977 GB, free: 25.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00263/0.5276, allocations: 3.728 MB / 0.5013 GB, free: 21.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001105/0.5287, allocations: 1.21 MB / 0.5025 GB, free: 20.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008106/0.5295, allocations: 0.5118 MB / 0.503 GB, free: 20.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.93e-05/0.5296, allocations: 313.1 kB / 0.5033 GB, free: 19.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/0.5317, allocations: 1.248 MB / 0.5045 GB, free: 18.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/0.534, allocations: 1.622 MB / 0.5061 GB, free: 16.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004382/0.5384, allocations: 2.996 MB / 0.509 GB, free: 13.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.5384, allocations: 4 kB / 0.509 GB, free: 13.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01056/0.549, allocations: 5.2 MB / 0.5141 GB, free: 8.637 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.549, allocations: 8 kB / 0.5141 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.5491, allocations: 14 kB / 0.5141 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005108/0.5542, allocations: 1.385 MB / 0.5155 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002847/0.5571, allocations: 0.5344 MB / 0.516 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0282/0.5853, allocations: 23.95 MB / 0.5394 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.5894, allocations: 132 kB / 0.5395 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005865/0.59, allocations: 116 kB / 0.5396 GB, free: 13.25 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 300 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.004197/0.5942, allocations: 2.184 MB / 0.5418 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001488/0.5957, allocations: 0.8253 MB / 0.5426 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/0.6072, allocations: 5.223 MB / 0.5477 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/0.6073, allocations: 39.98 kB / 0.5477 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/0.6073, allocations: 4 kB / 0.5477 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.948e-05/0.6074, allocations: 19.94 kB / 0.5477 GB, free: 4.895 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02189/0.6293, allocations: 11.05 MB / 0.5585 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/0.6293, allocations: 0 / 0.5585 GB, free: 9.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002541/0.6319, allocations: 459.3 kB / 0.559 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005541/0.6374, allocations: 1.338 MB / 0.5603 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005061/0.638, allocations: 71.27 kB / 0.5603 GB, free: 7.922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02522/0.6632, allocations: 21.85 MB / 0.5817 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02415/0.6874, allocations: 11.93 MB / 0.5933 GB, free: 4.605 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0144/0.7018, allocations: 6.938 MB / 0.6001 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/0.704, allocations: 0.7599 MB / 0.6008 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006515/0.7047, allocations: 64 kB / 0.6009 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.7068, allocations: 115.9 kB / 0.601 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007618/0.7075, allocations: 267.3 kB / 0.6013 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/0.7077, allocations: 95.97 kB / 0.6014 GB, free: 12.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01375/0.7215, allocations: 11.12 MB / 0.6122 GB, free: 1.168 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7215, allocations: 0 / 0.6122 GB, free: 1.168 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005751/0.7273, allocations: 1.077 MB / 0.6133 GB, free: 96 kB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001474/0.7288, allocations: 0.4946 MB / 0.6138 GB, free: 15.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008442/0.7373, allocations: 4.812 MB / 0.6185 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.7373, allocations: 0 / 0.6185 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00527/0.7426, allocations: 3.296 MB / 0.6217 GB, free: 7.277 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003273/0.7459, allocations: 0.5538 MB / 0.6222 GB, free: 6.723 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2398/0.9857, allocations: 17.89 MB / 0.6397 GB, free: 158 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004302/0.9901, allocations: 4.009 MB / 0.6436 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001884/0.992, allocations: 303.7 kB / 0.6439 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006081/0.9926, allocations: 170.3 kB / 0.6441 GB, free: 157.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9926, allocations: 3.688 kB / 0.6441 GB, free: 157.1 MB / 494.1 MB Notification: Performance of Templates: time 0.1678/1.16, allocations: 66.45 MB / 0.709 GB, free: 101.1 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)