Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.conf.json 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/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 181.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0371/0.0371, allocations: 8.795 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 251.3 MB, free: 7.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.0009603, allocations: 110.9 kB / 303.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 68.17 kB / 366 MB, free: 176 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1861, allocations: 51.56 MB / 417.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.01771/0.2038, allocations: 25.01 MB / 442.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.2186, allocations: 7.868 MB / 450.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004806/0.2234, allocations: 167.5 kB / 450.6 MB, free: 3.738 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0156/0.239, allocations: 7.229 MB / 457.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00894/0.248, allocations: 2.799 MB / 460.6 MB, free: 9.688 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005233/0.2533, allocations: 1.888 MB / 462.5 MB, free: 7.801 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.2641, allocations: 9.501 MB / 472 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02082/0.2849, allocations: 14.38 MB / 486.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007478/0.2924, allocations: 4.101 MB / 490.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007352/0.2998, allocations: 4.986 MB / 495.5 MB, free: 6.645 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002786/0.3026, allocations: 0.8555 MB / 496.3 MB, free: 5.789 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004203/0.3068, allocations: 1.211 MB / 497.5 MB, free: 4.578 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003383/0.3102, allocations: 2.173 MB / 499.7 MB, free: 2.398 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1863/0.4965, allocations: 4.551 MB / 0.4924 GB, free: 22.97 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.5124, allocations: 17.72 MB / 0.5097 GB, free: 20.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.5124, allocations: 0 / 0.5097 GB, free: 20.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5124, allocations: 3.75 kB / 0.5097 GB, free: 20.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004248/0.5129, allocations: 1.375 kB / 0.5097 GB, free: 20.05 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02983/0.5427, allocations: 10.8 MB / 0.5203 GB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.5428, allocations: 11.53 kB / 0.5203 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02736/0.5701, allocations: 5.632 MB / 0.5258 GB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01232/0.5825, allocations: 5.656 MB / 0.5313 GB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000518/0.583, allocations: 0.5825 MB / 0.5319 GB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003436/0.5865, allocations: 0.7728 MB / 0.5326 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02535/0.6119, allocations: 12.75 MB / 0.5451 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001795/0.6121, allocations: 18.52 kB / 0.5451 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009536/0.613, allocations: 330.8 kB / 0.5454 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004481/0.6135, allocations: 0.4922 MB / 0.5459 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02503/0.6385, allocations: 12.24 MB / 0.5579 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07247/0.711, allocations: 43.72 MB / 0.6006 GB, free: 3.719 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02168/0.7328, allocations: 25.17 MB / 0.6251 GB, free: 7.676 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004832/0.7376, allocations: 2.979 MB / 0.628 GB, free: 4.695 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.7381, allocations: 238.8 kB / 0.6283 GB, free: 4.438 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004273/0.7424, allocations: 2.59 MB / 0.6308 GB, free: 1.781 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 8.566e-06/0.7425, allocations: 0 / 0.6308 GB, free: 1.781 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.04004/0.7825, allocations: 18.11 MB / 0.6485 GB, free: 15.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.7827, allocations: 355.2 kB / 0.6488 GB, free: 15.15 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00505/0.7877, allocations: 3.519 MB / 0.6523 GB, free: 11.63 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005923/0.7883, allocations: 85.7 kB / 0.6523 GB, free: 11.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001981/0.7903, allocations: 3.377 MB / 0.6556 GB, free: 8.141 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001385/0.7917, allocations: 1.349 MB / 0.657 GB, free: 6.805 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/0.7933, allocations: 1.081 MB / 0.658 GB, free: 5.715 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.946e-05/0.7934, allocations: 309.1 kB / 0.6583 GB, free: 5.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003693/0.7971, allocations: 2.549 MB / 0.6608 GB, free: 2.855 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1985/0.9956, allocations: 4.509 MB / 0.6652 GB, free: 168.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/1.006, allocations: 7.452 MB / 0.6725 GB, free: 166.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/1.006, allocations: 17.59 kB / 0.6725 GB, free: 166.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01217/1.018, allocations: 8.274 MB / 0.6806 GB, free: 163 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.538e-05/1.018, allocations: 56.86 kB / 0.6806 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.323e-05/1.018, allocations: 62.31 kB / 0.6807 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002372/1.021, allocations: 1.004 MB / 0.6817 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003634/1.024, allocations: 1.253 MB / 0.6829 GB, free: 162.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00967/1.034, allocations: 8.231 MB / 0.6909 GB, free: 158.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004007/1.038, allocations: 360.5 kB / 0.6913 GB, free: 158.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004431/1.038, allocations: 269.5 kB / 0.6915 GB, free: 158 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004289/1.043, allocations: 2.9 MB / 0.6944 GB, free: 156.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007722/1.043, allocations: 388.8 kB / 0.6947 GB, free: 156.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008904/1.052, allocations: 6.19 MB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/1.052, allocations: 40 kB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/1.052, allocations: 12 kB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/1.052, allocations: 19.5 kB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02336/1.076, allocations: 14.91 MB / 0.7154 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/1.076, allocations: 8.062 kB / 0.7154 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.078, allocations: 0.6831 MB / 0.7161 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/1.08, allocations: 0.8829 MB / 0.7169 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/1.081, allocations: 83.98 kB / 0.717 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008645/1.089, allocations: 7.185 MB / 0.724 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.089, allocations: 4 kB / 0.724 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04343/1.133, allocations: 30.06 MB / 0.7534 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/1.135, allocations: 0.91 MB / 0.7543 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005424/1.135, allocations: 83.94 kB / 0.7544 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/1.137, allocations: 195.8 kB / 0.7546 GB, free: 99.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005666/1.138, allocations: 271.2 kB / 0.7548 GB, free: 99.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.138, allocations: 108 kB / 0.7549 GB, free: 99.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00301/1.141, allocations: 2.368 MB / 0.7572 GB, free: 97.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.141, allocations: 4 kB / 0.7572 GB, free: 97.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005699/1.147, allocations: 1.767 MB / 0.759 GB, free: 95.49 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005771/1.148, allocations: 242.1 kB / 0.7592 GB, free: 95.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00841/1.156, allocations: 6.454 MB / 0.7655 GB, free: 88.77 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.156, allocations: 1.312 kB / 0.7655 GB, free: 88.77 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003805/1.16, allocations: 3.082 MB / 0.7685 GB, free: 85.67 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/1.163, allocations: 0.7768 MB / 0.7693 GB, free: 84.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02318/1.187, allocations: 20.1 MB / 0.7889 GB, free: 64.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004612/1.191, allocations: 5.122 MB / 0.7939 GB, free: 59.52 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004513/1.196, allocations: 1.594 MB / 0.7955 GB, free: 57.92 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009349/1.197, allocations: 335.4 kB / 0.7958 GB, free: 57.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/1.197, allocations: 0 / 0.7958 GB, free: 57.59 MB / 490.7 MB Notification: Performance of Templates: time 0.2681/1.465, allocations: 66.72 MB / 0.8609 GB, free: 145.9 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)