Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00148/0.00148, allocations: 109.9 kB / 16.92 MB, free: 5.797 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.001744/0.001744, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.392/1.392, allocations: 205.1 MB / 223.7 MB, free: 12.35 MB / 190.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.00117/0.00117, allocations: 55.92 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09419, allocations: 46.64 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01211/0.1063, allocations: 10.97 MB / 337.6 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006961/0.1133, allocations: 3.546 MB / 341.1 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.1155, allocations: 39.88 kB / 341.2 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007425/0.123, allocations: 8.14 MB / 349.3 MB, free: 13.68 MB / 302.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.006025/0.129, allocations: 4.609 MB / 353.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00232/0.1313, allocations: 0.9284 MB / 354.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005883/0.1372, allocations: 5.293 MB / 360.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.1389, allocations: 0.8867 MB / 361 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004487/0.1434, allocations: 2.86 MB / 363.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007203/0.1507, allocations: 5.116 MB / 369 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009709/0.1517, allocations: 351.9 kB / 369.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.1527, allocations: 392 kB / 369.7 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001545/0.1542, allocations: 1.869 MB / 371.6 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002795/0.157, allocations: 2.788 MB / 374.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1665/0.3235, allocations: 7.145 MB / 381.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.138e-05/0.3236, allocations: 0 / 381.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3236, allocations: 1.375 kB / 381.5 MB, free: 34.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003262/0.3239, allocations: 0 / 381.5 MB, free: 34.88 MB / 318.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.01668/0.3406, allocations: 7.644 MB / 389.2 MB, free: 30.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3407, allocations: 14.42 kB / 389.2 MB, free: 30.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.3423, allocations: 0.8517 MB / 390.1 MB, free: 30.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004305/0.3466, allocations: 3.147 MB / 393.2 MB, free: 28.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3468, allocations: 157.5 kB / 393.4 MB, free: 28.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003649/0.3472, allocations: 212.3 kB / 393.6 MB, free: 28.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004387/0.3516, allocations: 2.107 MB / 395.7 MB, free: 28.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-05/0.3517, allocations: 9.375 kB / 395.7 MB, free: 28.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002088/0.3519, allocations: 86.92 kB / 395.8 MB, free: 28.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-05/0.3519, allocations: 51.59 kB / 395.8 MB, free: 28.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004005/0.3559, allocations: 1.889 MB / 397.7 MB, free: 28.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01651/0.3725, allocations: 8.953 MB / 406.7 MB, free: 22.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.3761, allocations: 2.326 MB / 409 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/0.3785, allocations: 1.387 MB / 410.4 MB, free: 20.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.3786, allocations: 40.31 kB / 410.4 MB, free: 20.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001883/0.3805, allocations: 1.166 MB / 411.6 MB, free: 19.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.248e-06/0.3806, allocations: 0 / 411.6 MB, free: 19.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06321/0.4438, allocations: 22.8 MB / 434.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02996/0.4738, allocations: 13.63 MB / 448 MB, free: 14.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01712/0.491, allocations: 14.89 MB / 462.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008424/0.4918, allocations: 89.77 kB / 463 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003747/0.4956, allocations: 3.732 MB / 466.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002014/0.4976, allocations: 1.208 MB / 467.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/0.4989, allocations: 0.5194 MB / 468.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4991, allocations: 305.1 kB / 468.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002663/0.5017, allocations: 1.256 MB / 470 MB, free: 8.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/0.5048, allocations: 1.622 MB / 471.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00561/0.5104, allocations: 2.994 MB / 474.6 MB, free: 3.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.5104, allocations: 4 kB / 474.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01192/0.5223, allocations: 5.206 MB / 479.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.5224, allocations: 4 kB / 479.8 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.5224, allocations: 8 kB / 479.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005717/0.5282, allocations: 1.392 MB / 481.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002852/0.531, allocations: 0.5412 MB / 481.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02958/0.5606, allocations: 23.99 MB / 0.4939 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/0.565, allocations: 135.8 kB / 0.494 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007814/0.5658, allocations: 112 kB / 0.4941 GB, free: 3.406 MB / 398.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.004331/0.5701, allocations: 2.186 MB / 0.4963 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00151/0.5717, allocations: 0.8136 MB / 0.4971 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/0.5834, allocations: 5.215 MB / 0.5022 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-05/0.5835, allocations: 36 kB / 0.5022 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.5835, allocations: 4 kB / 0.5022 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.973e-05/0.5836, allocations: 27.3 kB / 0.5022 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02014/0.6037, allocations: 11.08 MB / 0.5131 GB, free: 104 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/0.6038, allocations: 0 / 0.5131 GB, free: 104 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/0.6062, allocations: 463.2 kB / 0.5135 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005409/0.6116, allocations: 1.349 MB / 0.5148 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002834/0.6119, allocations: 71.97 kB / 0.5149 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.198/0.8099, allocations: 21.86 MB / 0.5362 GB, free: 143.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02334/0.8333, allocations: 11.94 MB / 0.5479 GB, free: 136.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01326/0.8466, allocations: 6.943 MB / 0.5547 GB, free: 134 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/0.8488, allocations: 0.7516 MB / 0.5554 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000786/0.8496, allocations: 66.44 kB / 0.5555 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002039/0.8517, allocations: 115.1 kB / 0.5556 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006663/0.8524, allocations: 268 kB / 0.5558 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.8526, allocations: 97.27 kB / 0.5559 GB, free: 133.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.009627/0.8622, allocations: 11.12 MB / 0.5668 GB, free: 125.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.72e-07/0.8622, allocations: 0 / 0.5668 GB, free: 125.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004183/0.8664, allocations: 1.074 MB / 0.5678 GB, free: 124.6 MB / 430.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.001125/0.8676, allocations: 0.5034 MB / 0.5683 GB, free: 124.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01097/0.8785, allocations: 4.923 MB / 0.5731 GB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.8786, allocations: 0 / 0.5731 GB, free: 119.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004171/0.8828, allocations: 3.291 MB / 0.5763 GB, free: 115.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/0.8863, allocations: 0.5543 MB / 0.5769 GB, free: 115.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.9063, allocations: 18.08 MB / 0.5945 GB, free: 97.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003241/0.9096, allocations: 4.01 MB / 0.5985 GB, free: 93.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.9116, allocations: 305.2 kB / 0.5988 GB, free: 92.89 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006009/0.9122, allocations: 171.4 kB / 0.5989 GB, free: 92.73 MB / 430.1 MB Notification: Performance of SimCode: time 7.92e-07/0.9122, allocations: 4 kB / 0.5989 GB, free: 92.72 MB / 430.1 MB Notification: Performance of Templates: time 0.1594/1.072, allocations: 65.37 MB / 0.6628 GB, free: 27.25 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)