Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008617/0.008617, allocations: 97.53 kB / 15.73 MB, free: 6.016 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.002085/0.002085, allocations: 192.7 kB / 16.67 MB, free: 5.93 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.479/1.479, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.002045/0.002045, allocations: 53.42 kB / 326.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.111, allocations: 46.62 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01205/0.1231, allocations: 10.98 MB / 384.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007506/0.1307, allocations: 3.55 MB / 387.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.1329, allocations: 35.88 kB / 387.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007364/0.1403, allocations: 8.144 MB / 395.9 MB, free: 10.64 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.006872/0.1473, allocations: 4.616 MB / 400.5 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002494/0.1498, allocations: 0.9245 MB / 401.4 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007115/0.1569, allocations: 5.307 MB / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.1584, allocations: 0.8943 MB / 407.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/0.1633, allocations: 2.856 MB / 410.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007018/0.1703, allocations: 5.123 MB / 415.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.1716, allocations: 352 kB / 415.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.1729, allocations: 392 kB / 416.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001554/0.1744, allocations: 1.869 MB / 418.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003411/0.1779, allocations: 2.784 MB / 421 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009667/0.1875, allocations: 7.287 MB / 428.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.1876, allocations: 0 / 428.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1876, allocations: 0 / 428.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002687/0.1879, allocations: 4 kB / 428.3 MB, free: 10.09 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.01603/0.2039, allocations: 7.945 MB / 436.2 MB, free: 2.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.204, allocations: 11.89 kB / 436.2 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001562/0.2056, allocations: 0.8934 MB / 437.1 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005606/0.2112, allocations: 3.254 MB / 440.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.2114, allocations: 156.5 kB / 440.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.2118, allocations: 212.1 kB / 440.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00432/0.2161, allocations: 2.108 MB / 442.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/0.2162, allocations: 7.984 kB / 442.8 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001953/0.2164, allocations: 87.94 kB / 442.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.232e-05/0.2164, allocations: 52 kB / 443 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003995/0.2204, allocations: 1.899 MB / 444.9 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01652/0.237, allocations: 8.893 MB / 453.8 MB, free: 124 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.214/0.4511, allocations: 2.319 MB / 456.1 MB, free: 66.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002874/0.454, allocations: 1.417 MB / 457.5 MB, free: 66.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.4542, allocations: 38.06 kB / 457.5 MB, free: 66.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002268/0.4564, allocations: 1.163 MB / 458.7 MB, free: 66.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.529e-06/0.4565, allocations: 0.6875 kB / 458.7 MB, free: 66.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.05908/0.5155, allocations: 23.21 MB / 481.9 MB, free: 53.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02399/0.5396, allocations: 13.62 MB / 495.5 MB, free: 39.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/0.5505, allocations: 14.9 MB / 0.4985 GB, free: 25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005185/0.5511, allocations: 81.7 kB / 0.4986 GB, free: 24.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002399/0.5535, allocations: 3.751 MB / 0.5022 GB, free: 21.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/0.5546, allocations: 1.269 MB / 0.5035 GB, free: 20.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008351/0.5554, allocations: 0.5157 MB / 0.504 GB, free: 19.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.786e-05/0.5555, allocations: 309 kB / 0.5043 GB, free: 19.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/0.5576, allocations: 1.248 MB / 0.5055 GB, free: 18.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/0.5599, allocations: 1.626 MB / 0.5071 GB, free: 16.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004442/0.5644, allocations: 2.998 MB / 0.51 GB, free: 13.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.5644, allocations: 0 / 0.51 GB, free: 13.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009644/0.5741, allocations: 5.247 MB / 0.5151 GB, free: 8.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.5741, allocations: 11.06 kB / 0.5151 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.5742, allocations: 4 kB / 0.5151 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004908/0.5791, allocations: 1.393 MB / 0.5165 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002458/0.5815, allocations: 0.5383 MB / 0.517 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02581/0.6074, allocations: 23.98 MB / 0.5404 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002964/0.6104, allocations: 131.9 kB / 0.5406 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/0.6106, allocations: 111.9 kB / 0.5407 GB, free: 12.61 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.002937/0.6136, allocations: 2.186 MB / 0.5428 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009773/0.6146, allocations: 0.8576 MB / 0.5436 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/0.6256, allocations: 5.225 MB / 0.5487 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-05/0.6256, allocations: 36 kB / 0.5488 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/0.6257, allocations: 4 kB / 0.5488 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-05/0.6258, allocations: 27.92 kB / 0.5488 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02136/0.6471, allocations: 11.04 MB / 0.5596 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/0.6472, allocations: 0 / 0.5596 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/0.6497, allocations: 467.4 kB / 0.56 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005392/0.6551, allocations: 1.334 MB / 0.5613 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004102/0.6555, allocations: 79.25 kB / 0.5614 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0256/0.6811, allocations: 21.88 MB / 0.5828 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02474/0.7059, allocations: 11.94 MB / 0.5944 GB, free: 3.922 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/0.7207, allocations: 6.994 MB / 0.6013 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001581/0.7223, allocations: 0.7844 MB / 0.602 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006503/0.723, allocations: 75.98 kB / 0.6021 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002115/0.7251, allocations: 111.9 kB / 0.6022 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007044/0.7258, allocations: 267.3 kB / 0.6025 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/0.726, allocations: 95.97 kB / 0.6026 GB, free: 11.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01234/0.7384, allocations: 11.13 MB / 0.6134 GB, free: 412 kB / 478.1 MB Notification: Performance of sort global known variables: time 6.72e-07/0.7384, allocations: 0 / 0.6134 GB, free: 412 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.004393/0.7428, allocations: 1.077 MB / 0.6145 GB, free: 15.32 MB / 494.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.001233/0.7441, allocations: 0.5024 MB / 0.615 GB, free: 14.84 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008175/0.7523, allocations: 4.817 MB / 0.6197 GB, free: 9.895 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.7523, allocations: 0 / 0.6197 GB, free: 9.895 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005541/0.7579, allocations: 3.308 MB / 0.6229 GB, free: 6.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/0.7613, allocations: 0.5614 MB / 0.6234 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2299/0.9913, allocations: 18.14 MB / 0.6412 GB, free: 158.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004652/0.996, allocations: 4.009 MB / 0.6451 GB, free: 157.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001778/0.9978, allocations: 302.8 kB / 0.6454 GB, free: 157.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.9984, allocations: 173.8 kB / 0.6455 GB, free: 157.3 MB / 494.1 MB Notification: Performance of SimCode: time 7.41e-07/0.9984, allocations: 0 / 0.6455 GB, free: 157.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1651/1.164, allocations: 66.45 MB / 0.7104 GB, free: 100.4 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)