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.005793/0.005793, allocations: 96.53 kB / 15.73 MB, free: 6.039 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.001232/0.001232, allocations: 196.4 kB / 16.67 MB, free: 5.969 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.498/1.498, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001111/0.001111, allocations: 46.25 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.0977, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01165/0.1094, allocations: 10.98 MB / 384.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007129/0.1166, allocations: 3.554 MB / 387.7 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002065/0.1187, allocations: 39.88 kB / 387.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006535/0.1253, allocations: 8.132 MB / 395.9 MB, free: 10.55 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.005865/0.1311, allocations: 4.62 MB / 400.5 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002352/0.1335, allocations: 0.9245 MB / 401.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00693/0.1405, allocations: 5.307 MB / 406.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.142, allocations: 0.8943 MB / 407.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004847/0.1469, allocations: 2.856 MB / 410.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00618/0.1531, allocations: 5.123 MB / 415.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009293/0.154, allocations: 352 kB / 415.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001121/0.1552, allocations: 392 kB / 416.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.1565, allocations: 1.869 MB / 418.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002271/0.1588, allocations: 2.792 MB / 421 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006627/0.1655, allocations: 7.283 MB / 428.3 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1655, allocations: 0 / 428.3 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.129e-06/0.1655, allocations: 0 / 428.3 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.1657, allocations: 3.938 kB / 428.3 MB, free: 9.996 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.01238/0.1781, allocations: 7.945 MB / 436.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1782, allocations: 15.89 kB / 436.2 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.1792, allocations: 0.8895 MB / 437.1 MB, free: 1.031 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00393/0.1831, allocations: 3.25 MB / 440.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.1833, allocations: 160.5 kB / 440.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002749/0.1836, allocations: 212.1 kB / 440.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003787/0.1874, allocations: 2.112 MB / 442.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.117e-05/0.1874, allocations: 4 kB / 442.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001758/0.1876, allocations: 84 kB / 442.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/0.1877, allocations: 55.98 kB / 443 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003681/0.1913, allocations: 1.899 MB / 444.9 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0169/0.2083, allocations: 8.886 MB / 453.8 MB, free: 32 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2082/0.4165, allocations: 2.317 MB / 456.1 MB, free: 66.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002648/0.4192, allocations: 1.419 MB / 457.5 MB, free: 66.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.4194, allocations: 37.98 kB / 457.5 MB, free: 66.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002014/0.4214, allocations: 1.163 MB / 458.7 MB, free: 66.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.258e-06/0.4214, allocations: 0 / 458.7 MB, free: 66.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.05792/0.4793, allocations: 23.21 MB / 481.9 MB, free: 53.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02461/0.504, allocations: 13.63 MB / 495.5 MB, free: 39.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/0.5157, allocations: 14.9 MB / 0.4985 GB, free: 24.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006615/0.5164, allocations: 85.7 kB / 0.4986 GB, free: 24.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/0.5189, allocations: 3.745 MB / 0.5022 GB, free: 21.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009798/0.5199, allocations: 1.275 MB / 0.5035 GB, free: 20.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007679/0.5207, allocations: 0.5196 MB / 0.504 GB, free: 19.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.649e-05/0.5207, allocations: 305.1 kB / 0.5043 GB, free: 19.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/0.5229, allocations: 1.244 MB / 0.5055 GB, free: 17.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00223/0.5251, allocations: 1.63 MB / 0.5071 GB, free: 16.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004255/0.5294, allocations: 2.998 MB / 0.51 GB, free: 13.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.054e-06/0.5294, allocations: 4 kB / 0.51 GB, free: 13.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009379/0.5388, allocations: 5.247 MB / 0.5151 GB, free: 7.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.5388, allocations: 7.984 kB / 0.5151 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.5388, allocations: 11.06 kB / 0.5151 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004895/0.5438, allocations: 1.381 MB / 0.5165 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.5463, allocations: 0.5422 MB / 0.517 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/0.5736, allocations: 23.97 MB / 0.5404 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003503/0.5771, allocations: 139.4 kB / 0.5406 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003211/0.5775, allocations: 115.9 kB / 0.5407 GB, free: 12.52 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.00343/0.5809, allocations: 2.187 MB / 0.5428 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/0.5821, allocations: 0.8537 MB / 0.5436 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/0.5932, allocations: 5.221 MB / 0.5487 GB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.5933, allocations: 36 kB / 0.5488 GB, free: 4.168 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.5933, allocations: 8 kB / 0.5488 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.699e-05/0.5934, allocations: 23.92 kB / 0.5488 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/0.6138, allocations: 11.04 MB / 0.5596 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/0.6138, allocations: 4 kB / 0.5596 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/0.6162, allocations: 462.6 kB / 0.56 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005257/0.6214, allocations: 1.338 MB / 0.5613 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002699/0.6217, allocations: 75.97 kB / 0.5614 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02666/0.6484, allocations: 21.86 MB / 0.5828 GB, free: 76 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0257/0.6741, allocations: 11.96 MB / 0.5944 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/0.6903, allocations: 6.99 MB / 0.6013 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001774/0.6921, allocations: 0.7922 MB / 0.602 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/0.6931, allocations: 64 kB / 0.6021 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002561/0.6957, allocations: 112 kB / 0.6022 GB, free: 11.74 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000776/0.6965, allocations: 271.2 kB / 0.6025 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/0.6968, allocations: 91.98 kB / 0.6026 GB, free: 11.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01622/0.713, allocations: 11.12 MB / 0.6134 GB, free: 324 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.7131, allocations: 4 kB / 0.6134 GB, free: 320 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.006152/0.7192, allocations: 1.081 MB / 0.6145 GB, free: 15.23 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.001363/0.7206, allocations: 0.5032 MB / 0.615 GB, free: 14.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008312/0.729, allocations: 4.821 MB / 0.6197 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.729, allocations: 0 / 0.6197 GB, free: 9.797 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00507/0.7341, allocations: 3.301 MB / 0.6229 GB, free: 6.387 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003295/0.7374, allocations: 0.5536 MB / 0.6234 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/0.9666, allocations: 18.14 MB / 0.6411 GB, free: 158.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005318/0.972, allocations: 4.014 MB / 0.6451 GB, free: 157.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001915/0.9739, allocations: 303.9 kB / 0.6454 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006864/0.9746, allocations: 174.3 kB / 0.6455 GB, free: 157.2 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/0.9747, allocations: 0 / 0.6455 GB, free: 157.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1649/1.14, allocations: 66.47 MB / 0.7104 GB, free: 100.2 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)