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.001215/0.001215, allocations: 113.9 kB / 17.07 MB, free: 5.973 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.001015/0.001015, allocations: 198.8 kB / 18 MB, free: 5.059 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.459/1.459, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001197/0.001197, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08543, allocations: 46.61 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.21/0.2954, allocations: 10.98 MB / 385.5 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00772/0.3032, allocations: 3.542 MB / 389 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004076/0.3074, allocations: 39.06 kB / 389 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.3179, allocations: 8.136 MB / 397.2 MB, free: 3.602 MB / 318.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.008294/0.3262, allocations: 4.625 MB / 401.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003407/0.3296, allocations: 0.918 MB / 402.7 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00986/0.3395, allocations: 5.314 MB / 408 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.3416, allocations: 0.8938 MB / 408.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006204/0.3478, allocations: 2.855 MB / 411.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007375/0.3552, allocations: 5.123 MB / 416.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.3564, allocations: 352 kB / 417.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.3579, allocations: 391.9 kB / 417.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.3593, allocations: 1.865 MB / 419.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003708/0.363, allocations: 2.792 MB / 422.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008311/0.3714, allocations: 7.241 MB / 429.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.3714, allocations: 0 / 429.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3714, allocations: 0 / 429.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003012/0.3717, allocations: 0 / 429.5 MB, free: 8.484 MB / 350.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.01499/0.3867, allocations: 7.647 MB / 437.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.3868, allocations: 15.83 kB / 437.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.3879, allocations: 0.8416 MB / 438 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004461/0.3924, allocations: 3.187 MB / 441.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.3925, allocations: 160.5 kB / 441.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003553/0.3929, allocations: 216 kB / 441.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004076/0.397, allocations: 2.104 MB / 443.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-05/0.3971, allocations: 4 kB / 443.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/0.3972, allocations: 87.98 kB / 443.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-05/0.3973, allocations: 52 kB / 443.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00395/0.4012, allocations: 1.895 MB / 445.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01551/0.4168, allocations: 8.876 MB / 454.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004052/0.4209, allocations: 2.325 MB / 456.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.4237, allocations: 1.423 MB / 458.3 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.4239, allocations: 42.28 kB / 458.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002151/0.426, allocations: 1.156 MB / 459.5 MB, free: 9.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.408e-06/0.4261, allocations: 3.938 kB / 459.5 MB, free: 9.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06654/0.4926, allocations: 22.81 MB / 482.4 MB, free: 2.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02962/0.5223, allocations: 13.61 MB / 496 MB, free: 4.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01754/0.5398, allocations: 14.89 MB / 0.4989 GB, free: 5.891 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008052/0.5407, allocations: 85.7 kB / 0.499 GB, free: 5.801 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003646/0.5443, allocations: 3.725 MB / 0.5026 GB, free: 2.066 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001561/0.5459, allocations: 1.209 MB / 0.5038 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009853/0.5469, allocations: 0.5196 MB / 0.5043 GB, free: 320 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.547, allocations: 305.1 kB / 0.5046 GB, free: 12 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.5496, allocations: 1.248 MB / 0.5058 GB, free: 14.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002724/0.5523, allocations: 1.626 MB / 0.5074 GB, free: 13.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005206/0.5575, allocations: 3 MB / 0.5103 GB, free: 9.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.5575, allocations: 4 kB / 0.5103 GB, free: 9.977 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01129/0.5688, allocations: 5.196 MB / 0.5154 GB, free: 4.742 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.5689, allocations: 12 kB / 0.5154 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.5689, allocations: 8 kB / 0.5154 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005272/0.5742, allocations: 1.393 MB / 0.5168 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002653/0.5769, allocations: 0.5383 MB / 0.5173 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02874/0.6056, allocations: 23.95 MB / 0.5407 GB, free: 9.535 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.6091, allocations: 135.8 kB / 0.5408 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000419/0.6095, allocations: 111.9 kB / 0.5409 GB, free: 9.293 MB / 478.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.004171/0.6137, allocations: 2.195 MB / 0.5431 GB, free: 7.086 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/0.6148, allocations: 0.8098 MB / 0.5439 GB, free: 6.266 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.6262, allocations: 5.215 MB / 0.549 GB, free: 1.004 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/0.6263, allocations: 36 kB / 0.549 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.528e-05/0.6263, allocations: 8 kB / 0.549 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.873e-05/0.6263, allocations: 23.86 kB / 0.549 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2148/0.8411, allocations: 11.05 MB / 0.5598 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.8412, allocations: 5.219 kB / 0.5598 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/0.8436, allocations: 463.9 kB / 0.5603 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005384/0.849, allocations: 1.333 MB / 0.5616 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000349/0.8493, allocations: 78.42 kB / 0.5616 GB, free: 145.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/0.8713, allocations: 21.84 MB / 0.583 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02252/0.8939, allocations: 11.93 MB / 0.5946 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/0.9067, allocations: 6.941 MB / 0.6014 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.9082, allocations: 0.7547 MB / 0.6021 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/0.9088, allocations: 67.66 kB / 0.6022 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/0.9108, allocations: 113.1 kB / 0.6023 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008176/0.9116, allocations: 270.8 kB / 0.6026 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/0.9118, allocations: 93.53 kB / 0.6026 GB, free: 117.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009824/0.9217, allocations: 11.12 MB / 0.6135 GB, free: 107.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9217, allocations: 3.281 kB / 0.6135 GB, free: 107.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00506/0.9268, allocations: 1.078 MB / 0.6146 GB, free: 106.3 MB / 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.001359/0.9281, allocations: 0.5021 MB / 0.6151 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006814/0.935, allocations: 4.814 MB / 0.6198 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.935, allocations: 0 / 0.6198 GB, free: 101 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004278/0.9393, allocations: 3.281 MB / 0.623 GB, free: 97.57 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.9423, allocations: 0.5574 MB / 0.6235 GB, free: 97.02 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/0.962, allocations: 17.9 MB / 0.641 GB, free: 79.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003448/0.9655, allocations: 4.017 MB / 0.6449 GB, free: 75.03 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001772/0.9673, allocations: 297.2 kB / 0.6452 GB, free: 74.73 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005927/0.9679, allocations: 175.4 kB / 0.6454 GB, free: 74.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/0.9679, allocations: 0 / 0.6454 GB, free: 74.57 MB / 478.1 MB Notification: Performance of Templates: time 0.1527/1.121, allocations: 66.43 MB / 0.7102 GB, free: 8.031 MB / 478.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)