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.001109/0.001109, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 196 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001327/0.001327, allocations: 56.39 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2156, allocations: 46.64 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01152/0.2272, allocations: 10.97 MB / 336.3 MB, free: 8.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008632/0.2358, allocations: 3.539 MB / 339.8 MB, free: 5.363 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.2388, allocations: 39.88 kB / 339.9 MB, free: 5.324 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007544/0.2465, allocations: 8.128 MB / 348 MB, free: 13.18 MB / 286.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.006593/0.2531, allocations: 4.632 MB / 352.6 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.2555, allocations: 0.9245 MB / 353.6 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00624/0.2618, allocations: 5.296 MB / 358.8 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.2634, allocations: 0.8918 MB / 359.7 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004008/0.2674, allocations: 2.853 MB / 362.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005531/0.2729, allocations: 5.116 MB / 367.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.274, allocations: 356 kB / 368.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.2753, allocations: 392 kB / 368.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.277, allocations: 1.865 MB / 370.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003213/0.2802, allocations: 2.792 MB / 373.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00639/0.2866, allocations: 7.145 MB / 380.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.2866, allocations: 3.984 kB / 380.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2866, allocations: 0 / 380.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002199/0.2869, allocations: 0 / 380.2 MB, free: 12.79 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.01263/0.2995, allocations: 7.643 MB / 387.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2996, allocations: 15.88 kB / 387.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3006, allocations: 0.8455 MB / 388.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/0.3041, allocations: 3.155 MB / 391.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.3043, allocations: 156.5 kB / 392.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002623/0.3045, allocations: 212 kB / 392.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003513/0.3081, allocations: 2.112 MB / 394.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.796e-05/0.3081, allocations: 15.83 kB / 394.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.3083, allocations: 80 kB / 394.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.3083, allocations: 52 kB / 394.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003489/0.3118, allocations: 1.891 MB / 396.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0128/0.3246, allocations: 8.95 MB / 405.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003673/0.3284, allocations: 2.326 MB / 407.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/0.3309, allocations: 1.373 MB / 409.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.3311, allocations: 42.27 kB / 409.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002218/0.3333, allocations: 1.16 MB / 410.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 5.491e-06/0.3333, allocations: 0 / 410.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06842/0.4017, allocations: 22.81 MB / 433.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03048/0.4322, allocations: 13.64 MB / 446.7 MB, free: 9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1992/0.6315, allocations: 14.89 MB / 461.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006609/0.6322, allocations: 89.2 kB / 461.7 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003946/0.6362, allocations: 3.728 MB / 465.4 MB, free: 103.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.6375, allocations: 1.209 MB / 466.6 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/0.6391, allocations: 0.5134 MB / 467.1 MB, free: 102.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.6392, allocations: 304.9 kB / 467.4 MB, free: 102.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/0.6418, allocations: 1.253 MB / 468.7 MB, free: 102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/0.6446, allocations: 1.626 MB / 470.3 MB, free: 101.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005359/0.65, allocations: 2.996 MB / 473.3 MB, free: 99.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.65, allocations: 0 / 473.3 MB, free: 99.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01127/0.6613, allocations: 5.211 MB / 478.5 MB, free: 97.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.6614, allocations: 9.641 kB / 478.5 MB, free: 97.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/0.6614, allocations: 6.562 kB / 478.5 MB, free: 97.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005344/0.6667, allocations: 1.394 MB / 479.9 MB, free: 97.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.6695, allocations: 0.5356 MB / 480.5 MB, free: 96.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02425/0.6938, allocations: 23.97 MB / 0.4926 GB, free: 71.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.6972, allocations: 135.9 kB / 0.4927 GB, free: 71.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005255/0.6977, allocations: 112.5 kB / 0.4928 GB, free: 71.53 MB / 382.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.003092/0.7008, allocations: 2.188 MB / 0.495 GB, free: 69.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/0.702, allocations: 0.8213 MB / 0.4958 GB, free: 68.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/0.7126, allocations: 5.211 MB / 0.5009 GB, free: 63.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.312e-05/0.7127, allocations: 36 kB / 0.5009 GB, free: 63.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/0.7127, allocations: 15.92 kB / 0.5009 GB, free: 63.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-05/0.7128, allocations: 19.88 kB / 0.5009 GB, free: 63.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0203/0.7331, allocations: 11.08 MB / 0.5118 GB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.7331, allocations: 0 / 0.5118 GB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002251/0.7354, allocations: 463.5 kB / 0.5122 GB, free: 51.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005061/0.7405, allocations: 1.346 MB / 0.5135 GB, free: 50.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/0.7408, allocations: 71.97 kB / 0.5136 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02119/0.762, allocations: 21.87 MB / 0.535 GB, free: 27.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02202/0.784, allocations: 11.93 MB / 0.5466 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/0.7978, allocations: 6.941 MB / 0.5534 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.7992, allocations: 0.756 MB / 0.5541 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009612/0.8002, allocations: 68 kB / 0.5542 GB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00246/0.8026, allocations: 112 kB / 0.5543 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007126/0.8034, allocations: 279.4 kB / 0.5546 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002362/0.8036, allocations: 95.97 kB / 0.5547 GB, free: 6.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01238/0.816, allocations: 11.12 MB / 0.5655 GB, free: 11.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.816, allocations: 0 / 0.5655 GB, free: 11.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004915/0.821, allocations: 1.08 MB / 0.5666 GB, free: 10.3 MB / 398.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.001545/0.8225, allocations: 0.4924 MB / 0.567 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01247/0.835, allocations: 4.917 MB / 0.5718 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.835, allocations: 0.625 kB / 0.5718 GB, free: 4.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005283/0.8403, allocations: 3.288 MB / 0.5751 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/0.8441, allocations: 0.5503 MB / 0.5756 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02911/0.8732, allocations: 18.08 MB / 0.5933 GB, free: 14.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005366/0.8786, allocations: 4.006 MB / 0.5972 GB, free: 10.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002085/0.8807, allocations: 312.9 kB / 0.5975 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006262/0.8814, allocations: 167.4 kB / 0.5976 GB, free: 10.18 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.8814, allocations: 0 / 0.5976 GB, free: 10.18 MB / 430.1 MB Notification: Performance of Templates: time 0.3114/1.193, allocations: 65.37 MB / 0.6615 GB, free: 102.7 MB / 430.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)