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.009129/0.009129, allocations: 98.83 kB / 15.73 MB, free: 6.031 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.001805/0.001805, allocations: 195.8 kB / 16.67 MB, free: 5.953 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.539/1.539, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001195/0.001195, allocations: 49.12 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09609, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01215/0.1083, allocations: 10.98 MB / 384.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007245/0.1156, allocations: 3.546 MB / 387.7 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.1179, allocations: 35.88 kB / 387.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007502/0.1254, allocations: 8.14 MB / 395.9 MB, free: 10.54 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.006246/0.1317, allocations: 4.64 MB / 400.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.1342, allocations: 0.9284 MB / 401.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007431/0.1416, allocations: 5.315 MB / 406.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.1433, allocations: 0.8904 MB / 407.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005084/0.1484, allocations: 2.864 MB / 410.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005852/0.1543, allocations: 5.123 MB / 415.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000741/0.1551, allocations: 356 kB / 416 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008999/0.156, allocations: 392 kB / 416.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001648/0.1576, allocations: 1.869 MB / 418.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003471/0.1611, allocations: 2.788 MB / 421 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007384/0.1685, allocations: 7.287 MB / 428.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1686, allocations: 0 / 428.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.1686, allocations: 0 / 428.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002418/0.1688, allocations: 0 / 428.3 MB, free: 9.945 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.0143/0.1831, allocations: 7.945 MB / 436.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.1832, allocations: 15.89 kB / 436.3 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001372/0.1846, allocations: 0.8895 MB / 437.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005016/0.1896, allocations: 3.257 MB / 440.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.1898, allocations: 156.5 kB / 440.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003696/0.1901, allocations: 212.1 kB / 440.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00414/0.1943, allocations: 2.108 MB / 442.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-05/0.1944, allocations: 4 kB / 442.9 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/0.1946, allocations: 84 kB / 443 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.1946, allocations: 56 kB / 443 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004057/0.1987, allocations: 1.895 MB / 444.9 MB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2042/0.4029, allocations: 8.89 MB / 453.8 MB, free: 65.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00447/0.4074, allocations: 2.319 MB / 456.1 MB, free: 65.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002785/0.4103, allocations: 1.416 MB / 457.5 MB, free: 65.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.4104, allocations: 41.45 kB / 457.6 MB, free: 65.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002371/0.4128, allocations: 1.167 MB / 458.7 MB, free: 65.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 5.4e-06/0.4128, allocations: 0.9688 kB / 458.7 MB, free: 65.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06276/0.4756, allocations: 23.21 MB / 482 MB, free: 53.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02537/0.501, allocations: 13.62 MB / 495.6 MB, free: 39.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01124/0.5123, allocations: 14.91 MB / 0.4985 GB, free: 24.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005718/0.5129, allocations: 81.7 kB / 0.4986 GB, free: 24.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002426/0.5153, allocations: 3.747 MB / 0.5023 GB, free: 20.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/0.5164, allocations: 1.269 MB / 0.5035 GB, free: 19.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008109/0.5172, allocations: 0.5234 MB / 0.504 GB, free: 19.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.079e-05/0.5172, allocations: 301.1 kB / 0.5043 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.5194, allocations: 1.252 MB / 0.5055 GB, free: 17.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.5217, allocations: 1.618 MB / 0.5071 GB, free: 15.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004461/0.5262, allocations: 2.999 MB / 0.51 GB, free: 12.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.5262, allocations: 3.438 kB / 0.51 GB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01022/0.5364, allocations: 5.243 MB / 0.5151 GB, free: 7.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.5365, allocations: 10.95 kB / 0.5152 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.5365, allocations: 5.781 kB / 0.5152 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005186/0.5417, allocations: 1.396 MB / 0.5165 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.5445, allocations: 0.5421 MB / 0.5171 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02869/0.5732, allocations: 23.97 MB / 0.5405 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003378/0.5767, allocations: 135.9 kB / 0.5406 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003539/0.577, allocations: 112 kB / 0.5407 GB, free: 12.12 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.003268/0.5803, allocations: 2.184 MB / 0.5428 GB, free: 9.926 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/0.5815, allocations: 0.8537 MB / 0.5437 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/0.593, allocations: 5.226 MB / 0.5488 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.219e-05/0.5931, allocations: 40 kB / 0.5488 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.5931, allocations: 8 kB / 0.5488 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/0.5932, allocations: 23.92 kB / 0.5488 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02126/0.6144, allocations: 11.04 MB / 0.5596 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-05/0.6145, allocations: 0 / 0.5596 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003014/0.6175, allocations: 467.4 kB / 0.5601 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005669/0.6232, allocations: 1.334 MB / 0.5614 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006133/0.6239, allocations: 71.97 kB / 0.5614 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02784/0.6517, allocations: 21.87 MB / 0.5828 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02579/0.6776, allocations: 11.95 MB / 0.5945 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/0.6928, allocations: 7.003 MB / 0.6013 GB, free: 12.31 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/0.6948, allocations: 0.7844 MB / 0.6021 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007757/0.6956, allocations: 75.94 kB / 0.6021 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002226/0.6979, allocations: 111.9 kB / 0.6022 GB, free: 11.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007215/0.6986, allocations: 275.3 kB / 0.6025 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002864/0.6989, allocations: 95.97 kB / 0.6026 GB, free: 10.96 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01643/0.7153, allocations: 11.12 MB / 0.6135 GB, free: 15.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7154, allocations: 0 / 0.6135 GB, free: 15.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00526/0.7207, allocations: 1.077 MB / 0.6145 GB, free: 14.81 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.001397/0.7221, allocations: 0.4956 MB / 0.615 GB, free: 14.33 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00896/0.731, allocations: 4.813 MB / 0.6197 GB, free: 9.391 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7311, allocations: 0.625 kB / 0.6197 GB, free: 9.391 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005633/0.7367, allocations: 3.308 MB / 0.6229 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/0.74, allocations: 0.5575 MB / 0.6235 GB, free: 5.414 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.24/0.9799, 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.004589/0.9846, allocations: 4.011 MB / 0.6451 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.9864, allocations: 307.4 kB / 0.6454 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006462/0.987, allocations: 168 kB / 0.6456 GB, free: 157.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.863e-06/0.9871, allocations: 3.75 kB / 0.6456 GB, free: 157.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1648/1.152, allocations: 66.47 MB / 0.7105 GB, free: 99.94 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)