Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001514, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.986/1.986, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 84.34 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.252e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3304, allocations: 47.55 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.475, allocations: 91.35 MB / 453.7 MB, free: 10.93 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.4754, allocations: 83.95 kB / 453.8 MB, free: 10.85 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2226/0.698, allocations: 49.58 MB / 0.4916 GB, free: 9.195 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.698, allocations: 0 / 0.4916 GB, free: 9.195 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.6983, allocations: 55.98 kB / 0.4916 GB, free: 9.141 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.00988/0.7082, allocations: 2.303 MB / 0.4939 GB, free: 6.777 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.7082, allocations: 8.031 kB / 0.4939 GB, free: 6.77 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.7095, allocations: 296.4 kB / 0.4941 GB, free: 6.477 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004794/0.7143, allocations: 1.333 MB / 0.4954 GB, free: 5.09 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.7145, allocations: 68 kB / 0.4955 GB, free: 5.023 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006429/0.7152, allocations: 116 kB / 0.4956 GB, free: 4.91 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006005/0.7212, allocations: 1.66 MB / 0.4972 GB, free: 3.242 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005793/0.727, allocations: 1.487 MB / 0.4987 GB, free: 1.707 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.656e-05/0.7272, allocations: 8 kB / 0.4987 GB, free: 1.699 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003999/0.7276, allocations: 4 kB / 0.4987 GB, free: 1.695 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.7278, allocations: 51.95 kB / 0.4988 GB, free: 1.645 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2869/1.015, allocations: 7.26 MB / 0.5058 GB, free: 99.57 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005756/1.021, allocations: 2.135 MB / 0.5079 GB, free: 99.34 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003922/1.024, allocations: 1.222 MB / 0.5091 GB, free: 99.32 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003286/1.025, allocations: 40.52 kB / 0.5092 GB, free: 99.32 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.32e-05/1.025, allocations: 63.39 kB / 0.5092 GB, free: 99.28 MB / 395.1 MB Notification: Performance of pre-optimization done (n=240): time 5.12e-06/1.025, allocations: 0 / 0.5092 GB, free: 99.28 MB / 395.1 MB Notification: Performance of matching and sorting (n=372): time 0.06448/1.089, allocations: 12.47 MB / 0.5214 GB, free: 96.6 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/1.09, allocations: 97.34 kB / 0.5215 GB, free: 96.54 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003431/1.093, allocations: 1.498 MB / 0.5229 GB, free: 95.93 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006972/1.094, allocations: 25.7 kB / 0.523 GB, free: 95.9 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007213/1.094, allocations: 0.8916 MB / 0.5238 GB, free: 95.22 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00156/1.096, allocations: 1.18 MB / 0.525 GB, free: 94.37 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003529/1.096, allocations: 0 / 0.525 GB, free: 94.37 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/1.097, allocations: 438.4 kB / 0.5254 GB, free: 94 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/1.1, allocations: 1.192 MB / 0.5266 GB, free: 93.44 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003827/1.104, allocations: 1.451 MB / 0.528 GB, free: 92.69 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00398/1.108, allocations: 1.361 MB / 0.5293 GB, free: 92.05 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.703e-05/1.108, allocations: 7.266 kB / 0.5293 GB, free: 92.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.01634/1.124, allocations: 4.132 MB / 0.5334 GB, free: 90.48 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/1.124, allocations: 10.75 kB / 0.5334 GB, free: 90.48 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/1.124, allocations: 5.094 kB / 0.5334 GB, free: 90.48 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009302/1.134, allocations: 1.308 MB / 0.5347 GB, free: 90.15 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005764/1.14, allocations: 0.5786 MB / 0.5352 GB, free: 90.12 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03485/1.175, allocations: 18.51 MB / 0.5533 GB, free: 76.41 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/1.179, allocations: 94.66 kB / 0.5534 GB, free: 76.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008062/1.18, allocations: 124.3 kB / 0.5535 GB, free: 76.38 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 of ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 305 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.0008914/1.181, allocations: 150 kB / 0.5537 GB, free: 76.25 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00088/1.182, allocations: 258.8 kB / 0.5539 GB, free: 76.12 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/1.198, allocations: 4.263 MB / 0.5581 GB, free: 73.66 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01439/1.213, allocations: 3.758 MB / 0.5617 GB, free: 70.29 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.213, allocations: 4 kB / 0.5617 GB, free: 70.29 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001122/1.213, allocations: 21.06 kB / 0.5618 GB, free: 70.28 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02881/1.242, allocations: 9.155 MB / 0.5707 GB, free: 62.73 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-05/1.242, allocations: 4 kB / 0.5707 GB, free: 62.72 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00513/1.247, allocations: 0.4936 MB / 0.5712 GB, free: 62.31 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009503/1.256, allocations: 1.353 MB / 0.5725 GB, free: 61.21 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007219/1.257, allocations: 26.55 kB / 0.5725 GB, free: 61.2 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.031/1.288, allocations: 17.11 MB / 0.5892 GB, free: 44.5 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09121/1.38, allocations: 26.48 MB / 0.6151 GB, free: 19.56 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02044/1.4, allocations: 6.359 MB / 0.6213 GB, free: 12.98 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/1.402, allocations: 0.6928 MB / 0.622 GB, free: 12.27 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008932/1.403, allocations: 8 kB / 0.622 GB, free: 12.26 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004282/1.408, allocations: 99.89 kB / 0.6221 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001236/1.409, allocations: 286.7 kB / 0.6224 GB, free: 11.89 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004401/1.409, allocations: 103.4 kB / 0.6225 GB, free: 11.79 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002462/1.412, allocations: 1.136 MB / 0.6236 GB, free: 10.66 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.92e-07/1.412, allocations: 0 / 0.6236 GB, free: 10.66 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005699/1.418, allocations: 0.9141 MB / 0.6245 GB, free: 9.746 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.001619/1.419, allocations: 352.7 kB / 0.6248 GB, free: 9.488 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.43, allocations: 4.291 MB / 0.629 GB, free: 5.133 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.43, allocations: 0.875 kB / 0.629 GB, free: 5.133 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007319/1.437, allocations: 2.952 MB / 0.6319 GB, free: 2.113 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/1.44, allocations: 229 kB / 0.6321 GB, free: 1.895 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0175/1.458, allocations: 5.839 MB / 0.6378 GB, free: 11.97 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/1.461, allocations: 1.834 MB / 0.6396 GB, free: 10.09 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/1.463, allocations: 213 kB / 0.6398 GB, free: 9.887 MB / 411.1 MB Notification: Performance of SimCode: time 1.633e-06/1.463, allocations: 0 / 0.6398 GB, free: 9.887 MB / 411.1 MB Notification: Performance of Templates: time 0.4674/1.93, allocations: 126.7 MB / 0.7635 GB, free: 19.89 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.pipe 2>&1)