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.001084/0.001084, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.001175/0.001175, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222.1 MB, free: 5.504 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.0005891/0.0005894, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2593, allocations: 47.58 MB / 326.4 MB, free: 1.656 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009371/0.2688, allocations: 8.8 MB / 335.2 MB, free: 10.85 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007607/0.2764, allocations: 3.517 MB / 338.8 MB, free: 7.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.2787, allocations: 35.88 kB / 338.8 MB, free: 7.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008322/0.287, allocations: 7.961 MB / 346.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00722/0.2943, allocations: 4.62 MB / 351.4 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002645/0.2969, allocations: 0.5537 MB / 351.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008156/0.3051, allocations: 3.479 MB / 355.4 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001776/0.3069, allocations: 0.6932 MB / 356.1 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004924/0.3119, allocations: 2.49 MB / 358.6 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005888/0.3178, allocations: 3.765 MB / 362.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.3189, allocations: 136 kB / 362.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.32, allocations: 168 kB / 362.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001866/0.3219, allocations: 1.709 MB / 364.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001373/0.3233, allocations: 1.075 MB / 365.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.3289, allocations: 5.398 MB / 370.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3289, allocations: 0 / 370.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3289, allocations: 0 / 370.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002542/0.3292, allocations: 0 / 370.8 MB, free: 7.145 MB / 302.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.01277/0.342, allocations: 6.687 MB / 377.5 MB, free: 368 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.342, allocations: 8.031 kB / 377.5 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.3437, allocations: 0.8484 MB / 378.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00597/0.3497, allocations: 2.897 MB / 381.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002542/0.35, allocations: 156.1 kB / 381.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006362/0.3506, allocations: 207.9 kB / 381.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00556/0.3562, allocations: 2.073 MB / 383.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.957e-05/0.3563, allocations: 4 kB / 383.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.3565, allocations: 88 kB / 383.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.194e-05/0.3566, allocations: 48 kB / 383.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004316/0.3609, allocations: 1.876 MB / 385.7 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01563/0.3766, allocations: 8.751 MB / 394.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003934/0.3805, allocations: 2.272 MB / 396.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.3807, allocations: 42.27 kB / 396.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002109/0.3828, allocations: 1.124 MB / 397.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.157e-06/0.3828, allocations: 0 / 397.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=375): time 0.0606/0.4434, allocations: 21.42 MB / 419.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08019/0.5237, allocations: 30.15 MB / 449.5 MB, free: 6.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2091/0.7328, allocations: 14.87 MB / 464.3 MB, free: 104.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006599/0.7335, allocations: 89.23 kB / 464.4 MB, free: 104.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003181/0.7367, allocations: 3.72 MB / 468.1 MB, free: 102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/0.7379, allocations: 1.246 MB / 469.4 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.7382, allocations: 68.72 kB / 469.5 MB, free: 101.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.7383, allocations: 433.9 kB / 469.9 MB, free: 101 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/0.7405, allocations: 1.204 MB / 471.1 MB, free: 100.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/0.7427, allocations: 1.559 MB / 472.6 MB, free: 99.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002236/0.745, allocations: 1.409 MB / 474.1 MB, free: 99.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.745, allocations: 0 / 474.1 MB, free: 99.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.009318/0.7543, allocations: 5.083 MB / 479.1 MB, free: 97.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.7544, allocations: 8 kB / 479.1 MB, free: 97.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.7544, allocations: 4 kB / 479.2 MB, free: 97.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004622/0.7591, allocations: 1.355 MB / 480.5 MB, free: 96.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/0.7618, allocations: 0.5546 MB / 481.1 MB, free: 95.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/0.7824, allocations: 21.25 MB / 0.4905 GB, free: 73.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003856/0.7863, allocations: 167.4 kB / 0.4907 GB, free: 73.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004606/0.7868, allocations: 116 kB / 0.4908 GB, free: 73.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 302 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.003777/0.7906, allocations: 2.2 MB / 0.493 GB, free: 71.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/0.7917, allocations: 0.8205 MB / 0.4938 GB, free: 70.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009827/0.8015, allocations: 5.153 MB / 0.4988 GB, free: 65.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004368/0.8059, allocations: 2.286 MB / 0.501 GB, free: 63.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/0.8059, allocations: 4 kB / 0.501 GB, free: 63.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.656e-05/0.806, allocations: 15.94 kB / 0.501 GB, free: 63.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01798/0.824, allocations: 10.79 MB / 0.5116 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.881e-05/0.8241, allocations: 0 / 0.5116 GB, free: 52.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/0.8264, allocations: 479.4 kB / 0.512 GB, free: 51.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004743/0.8312, allocations: 1.372 MB / 0.5134 GB, free: 50.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003018/0.8315, allocations: 75.97 kB / 0.5134 GB, free: 50.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/0.8499, allocations: 19.7 MB / 0.5327 GB, free: 29.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0611/0.911, allocations: 26.77 MB / 0.5588 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/0.9242, allocations: 6.976 MB / 0.5656 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002335/0.9266, allocations: 0.759 MB / 0.5664 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008109/0.9274, allocations: 68.09 kB / 0.5664 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/0.9295, allocations: 143.8 kB / 0.5666 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006786/0.9302, allocations: 279.2 kB / 0.5669 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001879/0.9304, allocations: 95.97 kB / 0.5669 GB, free: 9.695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.01343/0.9439, allocations: 11.1 MB / 0.5778 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.9439, allocations: 0 / 0.5778 GB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004939/0.9488, allocations: 1.102 MB / 0.5789 GB, free: 13.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.9502, allocations: 0.4949 MB / 0.5793 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00833/0.9585, allocations: 4.748 MB / 0.584 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.9585, allocations: 0 / 0.584 GB, free: 8.184 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005257/0.9638, allocations: 3.328 MB / 0.5872 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/0.9668, allocations: 467.4 kB / 0.5877 GB, free: 4.285 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2061/1.173, allocations: 20.22 MB / 0.6074 GB, free: 141.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00795/1.181, allocations: 4.2 MB / 0.6115 GB, free: 140.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002548/1.183, allocations: 345.8 kB / 0.6119 GB, free: 140.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006938/1.184, allocations: 179.7 kB / 0.612 GB, free: 140.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/1.184, allocations: 0 / 0.612 GB, free: 140.3 MB / 430.1 MB Notification: Performance of Templates: time 0.1068/1.291, allocations: 62.27 MB / 0.6728 GB, free: 92.39 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: