Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001454/0.001454, allocations: 187.9 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.359/1.359, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001793/0.001793, allocations: 127.5 kB / 248.1 MB, free: 6.324 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.585e-05, allocations: 4 kB / 298.1 MB, free: 8.238 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07602/0.07605, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.3557, allocations: 86.77 MB / 429.4 MB, free: 9.219 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.356, allocations: 85.94 kB / 429.4 MB, free: 9.176 MB / 315.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$comparisonWithFEA.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.1929/0.5489, allocations: 76.63 MB / 0.4942 GB, free: 3.141 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.549, allocations: 0 / 0.4942 GB, free: 3.141 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0008219/0.5498, allocations: 116 kB / 0.4943 GB, free: 3.027 MB / 379.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.01467/0.5645, allocations: 5.584 MB / 0.4998 GB, free: 13.36 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.5645, allocations: 8.031 kB / 0.4998 GB, free: 13.35 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002817/0.5674, allocations: 0.8641 MB / 0.5006 GB, free: 12.47 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009292/0.5767, allocations: 3.585 MB / 0.5041 GB, free: 8.82 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.5768, allocations: 72.69 kB / 0.5042 GB, free: 8.75 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004315/0.5773, allocations: 127.9 kB / 0.5043 GB, free: 8.625 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003561/0.5808, allocations: 1.68 MB / 0.506 GB, free: 6.938 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003326/0.5842, allocations: 1.729 MB / 0.5076 GB, free: 5.148 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.448e-05/0.5843, allocations: 3.906 kB / 0.5076 GB, free: 5.145 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.5844, allocations: 0 / 0.5076 GB, free: 5.145 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.5845, allocations: 52 kB / 0.5077 GB, free: 5.094 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2306/0.8151, allocations: 9.755 MB / 0.5172 GB, free: 82.41 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003419/0.8186, allocations: 2.179 MB / 0.5193 GB, free: 82.14 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001975/0.8206, allocations: 1.243 MB / 0.5206 GB, free: 82.1 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001361/0.8207, allocations: 38.7 kB / 0.5206 GB, free: 82.1 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001546/0.8223, allocations: 1.043 MB / 0.5216 GB, free: 81.96 MB / 395.1 MB Notification: Performance of pre-optimization done (n=246): time 4.398e-06/0.8223, allocations: 0 / 0.5216 GB, free: 81.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=382): time 0.03971/0.862, allocations: 16.56 MB / 0.5378 GB, free: 77.48 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.8622, allocations: 281.2 kB / 0.5381 GB, free: 77.2 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1337/0.9959, allocations: 12.89 MB / 0.5506 GB, free: 74.93 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008149/0.9968, allocations: 27.83 kB / 0.5507 GB, free: 74.89 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004448/1.001, allocations: 3.716 MB / 0.5543 GB, free: 72.06 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/1.003, allocations: 1.205 MB / 0.5555 GB, free: 71.26 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/1.003, allocations: 1.531 kB / 0.5555 GB, free: 71.26 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/1.003, allocations: 439.2 kB / 0.5559 GB, free: 70.89 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/1.005, allocations: 1.221 MB / 0.5571 GB, free: 70.32 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/1.008, allocations: 1.554 MB / 0.5586 GB, free: 69.48 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/1.01, allocations: 1.412 MB / 0.56 GB, free: 68.83 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/1.01, allocations: 2.156 kB / 0.56 GB, free: 68.83 MB / 395.1 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.01709/1.027, allocations: 5.02 MB / 0.5649 GB, free: 66.81 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.445e-05/1.027, allocations: 42.89 kB / 0.5649 GB, free: 66.78 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/1.027, allocations: 6.969 kB / 0.5649 GB, free: 66.78 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00817/1.036, allocations: 1.37 MB / 0.5663 GB, free: 66.44 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004521/1.04, allocations: 0.5778 MB / 0.5668 GB, free: 66.42 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03436/1.075, allocations: 21.42 MB / 0.5878 GB, free: 49.93 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006451/1.081, allocations: 134.1 kB / 0.5879 GB, free: 49.92 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008222/1.082, allocations: 123 kB / 0.588 GB, free: 49.89 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (319): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 1 * 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0006725/1.083, allocations: 168.1 kB / 0.5882 GB, free: 49.77 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/1.084, allocations: 0.8423 MB / 0.589 GB, free: 49.32 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/1.096, allocations: 5.114 MB / 0.594 GB, free: 47.4 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004741/1.101, allocations: 2.242 MB / 0.5962 GB, free: 46.52 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.048e-05/1.101, allocations: 8.5 kB / 0.5962 GB, free: 46.52 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.917e-05/1.101, allocations: 22.7 kB / 0.5962 GB, free: 46.52 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02384/1.125, allocations: 13.44 MB / 0.6093 GB, free: 38.8 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/1.125, allocations: 0 / 0.6093 GB, free: 38.8 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/1.127, allocations: 0.4962 MB / 0.6098 GB, free: 38.39 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005016/1.132, allocations: 1.403 MB / 0.6112 GB, free: 37.25 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003063/1.132, allocations: 37.55 kB / 0.6112 GB, free: 37.22 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01913/1.151, allocations: 19.66 MB / 0.6304 GB, free: 17.8 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05371/1.205, allocations: 26.43 MB / 0.6562 GB, free: 9.93 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/1.223, allocations: 7.531 MB / 0.6636 GB, free: 2.73 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004923/1.228, allocations: 1.926 MB / 0.6655 GB, free: 0.9727 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/1.229, allocations: 28 kB / 0.6655 GB, free: 0.9453 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/1.232, allocations: 113.1 kB / 0.6656 GB, free: 0.8633 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007367/1.233, allocations: 288.7 kB / 0.6659 GB, free: 0.6875 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/1.233, allocations: 106.5 kB / 0.666 GB, free: 0.5977 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.2644/1.497, allocations: 11.53 MB / 0.6772 GB, free: 85.01 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.883e-06/1.497, allocations: 0 / 0.6772 GB, free: 85.01 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006792/1.504, allocations: 1.604 MB / 0.6788 GB, free: 85.01 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET3.x[2],$STATESET3.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET2.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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/1.505, allocations: 376.4 kB / 0.6792 GB, free: 84.87 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.006966/1.512, allocations: 4.708 MB / 0.6838 GB, free: 83.79 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.512, allocations: 6.062 kB / 0.6838 GB, free: 83.79 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004029/1.516, allocations: 3.202 MB / 0.6869 GB, free: 82.77 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003236/1.519, allocations: 422.9 kB / 0.6873 GB, free: 82.73 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02807/1.548, allocations: 17.26 MB / 0.7042 GB, free: 79.68 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005608/1.553, allocations: 4.208 MB / 0.7083 GB, free: 78.83 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.004218/1.557, allocations: 0.8353 MB / 0.7091 GB, free: 78.71 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/1.559, allocations: 355.6 kB / 0.7094 GB, free: 78.65 MB / 411.1 MB Notification: Performance of SimCode: time 7.51e-07/1.559, allocations: 1.5 kB / 0.7094 GB, free: 78.65 MB / 411.1 MB Notification: Performance of Templates: time 0.296/1.855, allocations: 82.45 MB / 0.7899 GB, free: 27.71 MB / 411.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)