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.001223/0.001223, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001563/0.001563, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.402/1.402, allocations: 205.1 MB / 222 MB, free: 5.016 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: 51.92 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2208, allocations: 46.62 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01149/0.2323, allocations: 10.89 MB / 335.6 MB, free: 9.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007276/0.2397, allocations: 3.483 MB / 339.1 MB, free: 5.762 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.2417, allocations: 39.88 kB / 339.1 MB, free: 5.723 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006758/0.2485, allocations: 8.137 MB / 347.2 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006618/0.2551, allocations: 4.559 MB / 351.8 MB, free: 9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.2578, allocations: 0.8234 MB / 352.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007103/0.2649, allocations: 5.104 MB / 357.7 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.2663, allocations: 0.7585 MB / 358.5 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003886/0.2702, allocations: 2.595 MB / 361.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005429/0.2757, allocations: 4.947 MB / 366 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006174/0.2763, allocations: 172 kB / 366.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007601/0.2771, allocations: 211.9 kB / 366.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.2784, allocations: 1.767 MB / 368.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001991/0.2804, allocations: 2.608 MB / 370.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005173/0.2856, allocations: 6.946 MB / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.2856, allocations: 0 / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2856, allocations: 0 / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001603/0.2858, allocations: 0 / 377.7 MB, free: 14.95 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.01125/0.297, allocations: 7.643 MB / 385.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.2971, allocations: 19.97 kB / 385.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.2982, allocations: 0.8416 MB / 386.2 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003645/0.3019, allocations: 3.148 MB / 389.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.302, allocations: 156.5 kB / 389.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.3023, allocations: 220 kB / 389.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003759/0.306, allocations: 2.104 MB / 391.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.3061, allocations: 11.91 kB / 391.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001701/0.3063, allocations: 84 kB / 391.9 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.549e-05/0.3063, allocations: 55.98 kB / 392 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003698/0.31, allocations: 1.899 MB / 393.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.3238, allocations: 8.923 MB / 402.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/0.3276, allocations: 2.338 MB / 405.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002626/0.3303, allocations: 1.377 MB / 406.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.3304, allocations: 46.27 kB / 406.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002205/0.3326, allocations: 1.156 MB / 407.7 MB, free: 360 kB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 3.878e-06/0.3327, allocations: 0 / 407.7 MB, free: 360 kB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06499/0.3977, allocations: 22.79 MB / 430.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02863/0.4263, allocations: 13.04 MB / 443.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.169/0.5954, allocations: 14.89 MB / 458.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008485/0.5963, allocations: 84.77 kB / 458.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003325/0.5997, allocations: 3.729 MB / 462.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/0.6008, allocations: 1.215 MB / 463.5 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009212/0.6017, allocations: 0.5125 MB / 464 MB, free: 102.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.555e-05/0.6017, allocations: 307.3 kB / 464.3 MB, free: 102.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.6042, allocations: 1.251 MB / 465.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00227/0.6065, allocations: 1.621 MB / 467.1 MB, free: 101.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/0.611, allocations: 2.991 MB / 470.1 MB, free: 99.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.611, allocations: 3.812 kB / 470.1 MB, free: 99.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009966/0.621, allocations: 5.211 MB / 475.4 MB, free: 97.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.621, allocations: 3.75 kB / 475.4 MB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.6211, allocations: 7.562 kB / 475.4 MB, free: 97.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005255/0.6263, allocations: 1.381 MB / 476.7 MB, free: 97.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/0.6291, allocations: 0.5427 MB / 477.3 MB, free: 97.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02173/0.6508, allocations: 21.91 MB / 499.2 MB, free: 74.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00317/0.654, allocations: 124.7 kB / 499.3 MB, free: 74.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003865/0.6544, allocations: 112.2 kB / 499.4 MB, free: 74.7 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.00293/0.6574, allocations: 2.194 MB / 0.4899 GB, free: 72.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009848/0.6584, allocations: 0.8131 MB / 0.4907 GB, free: 71.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009796/0.6682, allocations: 5.22 MB / 0.4958 GB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.6682, allocations: 36 kB / 0.4958 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.6682, allocations: 4 kB / 0.4958 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.894e-05/0.6683, allocations: 23.94 kB / 0.4958 GB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/0.6844, allocations: 11.09 MB / 0.5067 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.6844, allocations: 0 / 0.5067 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002305/0.6867, allocations: 463.3 kB / 0.5071 GB, free: 54.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005129/0.6919, allocations: 1.33 MB / 0.5084 GB, free: 53.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003209/0.6922, allocations: 75.95 kB / 0.5085 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01901/0.7112, allocations: 20.01 MB / 0.528 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02184/0.7331, allocations: 11.4 MB / 0.5391 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01297/0.7461, allocations: 6.949 MB / 0.5459 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/0.7477, allocations: 0.7522 MB / 0.5467 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006752/0.7483, allocations: 64 kB / 0.5467 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.7504, allocations: 115.9 kB / 0.5468 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007433/0.7512, allocations: 267.4 kB / 0.5471 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/0.7514, allocations: 91.97 kB / 0.5472 GB, free: 12.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01013/0.7615, allocations: 11.13 MB / 0.5581 GB, free: 1.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7616, allocations: 0 / 0.5581 GB, free: 1.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004654/0.7662, allocations: 1.07 MB / 0.5591 GB, free: 15.96 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.001359/0.7676, allocations: 0.4955 MB / 0.5596 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008678/0.7763, allocations: 4.812 MB / 0.5643 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.7763, allocations: 0 / 0.5643 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005432/0.7818, allocations: 3.27 MB / 0.5675 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003455/0.7853, allocations: 0.5189 MB / 0.568 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02998/0.8153, allocations: 20.21 MB / 0.5877 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005423/0.8207, allocations: 4.01 MB / 0.5916 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002729/0.8235, allocations: 313.2 kB / 0.5919 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008137/0.8243, allocations: 167.4 kB / 0.5921 GB, free: 13.85 MB / 430.1 MB Notification: Performance of SimCode: time 1.984e-06/0.8243, allocations: 0 / 0.5921 GB, free: 13.85 MB / 430.1 MB Notification: Performance of Templates: time 0.3239/1.148, allocations: 62.78 MB / 0.6534 GB, free: 106.2 MB / 430.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)