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.0008747/0.0008747, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005761/0.005761, allocations: 169.9 kB / 16.27 MB, free: 6.66 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.481/1.481, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004572/0.0004573, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2404, allocations: 47.59 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01019/0.2507, allocations: 10.32 MB / 337.4 MB, free: 9.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008364/0.259, allocations: 3.457 MB / 340.8 MB, free: 5.539 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.2615, allocations: 39.88 kB / 340.8 MB, free: 5.5 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01014/0.2716, allocations: 8.129 MB / 349 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009781/0.2814, allocations: 4.559 MB / 353.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.285, allocations: 0.835 MB / 354.4 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.2953, allocations: 5.097 MB / 359.5 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.2967, allocations: 0.7585 MB / 360.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004402/0.3011, allocations: 2.532 MB / 362.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005716/0.3068, allocations: 4.889 MB / 367.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000598/0.3074, allocations: 140 kB / 367.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006915/0.3081, allocations: 180 kB / 368 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.3094, allocations: 1.728 MB / 369.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.3116, allocations: 2.59 MB / 372.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005309/0.3169, allocations: 6.804 MB / 379.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3169, allocations: 0 / 379.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3169, allocations: 0 / 379.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001509/0.3171, allocations: 0 / 379.1 MB, free: 15.11 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.01032/0.3274, allocations: 6.605 MB / 385.7 MB, free: 8.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3275, allocations: 8.031 kB / 385.7 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001075/0.3286, allocations: 0.8455 MB / 386.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004028/0.3326, allocations: 3.159 MB / 389.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.3327, allocations: 156.5 kB / 389.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/0.3331, allocations: 208 kB / 390.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004061/0.3371, allocations: 2.143 MB / 392.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.497e-05/0.3372, allocations: 7.938 kB / 392.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001825/0.3374, allocations: 80 kB / 392.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.086e-05/0.3375, allocations: 52 kB / 392.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003956/0.3414, allocations: 1.95 MB / 394.3 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/0.3567, allocations: 8.981 MB / 403.3 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00395/0.3607, allocations: 2.342 MB / 405.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002677/0.3634, allocations: 1.396 MB / 407 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.3636, allocations: 38.28 kB / 407 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002138/0.3657, allocations: 1.175 MB / 408.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.659e-06/0.3657, allocations: 0 / 408.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06724/0.433, allocations: 23.09 MB / 431.3 MB, free: 9.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03035/0.4634, allocations: 13.23 MB / 444.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.189/0.6524, allocations: 14.89 MB / 459.4 MB, free: 106.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006514/0.6531, allocations: 85.8 kB / 459.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003282/0.6564, allocations: 3.731 MB / 463.2 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/0.6575, allocations: 1.215 MB / 464.5 MB, free: 103.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.6579, allocations: 260.8 kB / 464.7 MB, free: 103.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.994e-05/0.658, allocations: 301.1 kB / 465 MB, free: 103.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/0.6604, allocations: 1.268 MB / 466.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002437/0.6628, allocations: 1.65 MB / 467.9 MB, free: 102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004586/0.6674, allocations: 3.032 MB / 471 MB, free: 100.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.6675, allocations: 0 / 471 MB, free: 100.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01025/0.6777, allocations: 5.249 MB / 476.2 MB, free: 98.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.6778, allocations: 7.562 kB / 476.2 MB, free: 98.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.6778, allocations: 3.75 kB / 476.2 MB, free: 98.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005118/0.6829, allocations: 1.405 MB / 477.6 MB, free: 98.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002618/0.6856, allocations: 0.5519 MB / 478.2 MB, free: 97.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02248/0.7081, allocations: 21.95 MB / 0.4884 GB, free: 75.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/0.7112, allocations: 136 kB / 0.4885 GB, free: 75.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.7115, allocations: 112 kB / 0.4886 GB, free: 75.14 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.002754/0.7143, allocations: 2.191 MB / 0.4908 GB, free: 72.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008208/0.7151, allocations: 0.8136 MB / 0.4916 GB, free: 72.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/0.7252, allocations: 5.274 MB / 0.4967 GB, free: 66.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/0.7253, allocations: 36 kB / 0.4967 GB, free: 66.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/0.7253, allocations: 8 kB / 0.4968 GB, free: 66.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.432e-05/0.7254, allocations: 19.92 kB / 0.4968 GB, free: 66.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.7428, allocations: 11.13 MB / 0.5076 GB, free: 55.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.283e-05/0.7429, allocations: 3.938 kB / 0.5077 GB, free: 55.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/0.7452, allocations: 479.4 kB / 0.5081 GB, free: 55.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005701/0.7509, allocations: 1.339 MB / 0.5094 GB, free: 53.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003835/0.7513, allocations: 75.97 kB / 0.5095 GB, free: 53.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01965/0.771, allocations: 20.03 MB / 0.529 GB, free: 32.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02297/0.794, allocations: 11.59 MB / 0.5404 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.8064, allocations: 7.022 MB / 0.5472 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.8076, allocations: 0.756 MB / 0.548 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005764/0.8082, allocations: 68 kB / 0.548 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/0.8102, allocations: 124 kB / 0.5481 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006035/0.8108, allocations: 263.3 kB / 0.5484 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.811, allocations: 95.97 kB / 0.5485 GB, free: 12.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.008779/0.8198, allocations: 11.12 MB / 0.5593 GB, free: 1.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8198, allocations: 4 kB / 0.5593 GB, free: 1.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004189/0.824, allocations: 1.082 MB / 0.5604 GB, free: 15.97 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.001233/0.8253, allocations: 0.506 MB / 0.5609 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008373/0.8337, allocations: 4.829 MB / 0.5656 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.8337, allocations: 4.625 kB / 0.5656 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005203/0.8389, allocations: 3.302 MB / 0.5688 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00488/0.8438, allocations: 0.5305 MB / 0.5694 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02892/0.8728, allocations: 20.37 MB / 0.5893 GB, free: 2.129 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004578/0.8774, allocations: 4.01 MB / 0.5932 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002035/0.8795, allocations: 313.2 kB / 0.5935 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.8801, allocations: 171.4 kB / 0.5936 GB, free: 13.6 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8801, allocations: 0 / 0.5936 GB, free: 13.6 MB / 430.1 MB Notification: Performance of Templates: time 0.2681/1.148, allocations: 61.41 MB / 0.6536 GB, free: 106.3 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)