Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 182.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.03667/0.03667, allocations: 8.793 MB / 25.52 MB, free: 3.746 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.238 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.0009998/0.0009998, allocations: 95.16 kB / 303.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 67.89 kB / 366 MB, free: 168 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1855, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01981/0.2053, allocations: 25.03 MB / 442.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0162/0.2216, allocations: 7.885 MB / 450.4 MB, free: 3.863 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004691/0.2263, allocations: 167.5 kB / 450.6 MB, free: 3.699 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01553/0.2419, allocations: 7.228 MB / 457.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009392/0.2514, allocations: 2.795 MB / 460.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005617/0.257, allocations: 1.893 MB / 462.5 MB, free: 7.77 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.2695, allocations: 9.495 MB / 472 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02079/0.2904, allocations: 14.38 MB / 486.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00586/0.2963, allocations: 4.097 MB / 490.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0073/0.3036, allocations: 4.979 MB / 495.5 MB, free: 6.621 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003029/0.3067, allocations: 0.8555 MB / 496.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.3113, allocations: 1.218 MB / 497.5 MB, free: 4.547 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004042/0.3154, allocations: 2.173 MB / 499.7 MB, free: 2.367 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3458/0.6613, allocations: 4.562 MB / 0.4925 GB, free: 23.05 MB / 362.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.6796, allocations: 17.71 MB / 0.5098 GB, free: 20.11 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.6796, allocations: 1 kB / 0.5098 GB, free: 20.11 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6796, allocations: 3.75 kB / 0.5098 GB, free: 20.11 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0005104/0.6802, allocations: 2.125 kB / 0.5098 GB, free: 20.11 MB / 362.8 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.03268/0.7128, allocations: 10.81 MB / 0.5203 GB, free: 15.24 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.7129, allocations: 9.906 kB / 0.5203 GB, free: 15.24 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02841/0.7413, allocations: 5.631 MB / 0.5258 GB, free: 12.72 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0126/0.754, allocations: 5.657 MB / 0.5313 GB, free: 8.98 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/0.7544, allocations: 0.5836 MB / 0.5319 GB, free: 8.719 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003374/0.7578, allocations: 0.7621 MB / 0.5327 GB, free: 8.473 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02878/0.7866, allocations: 12.76 MB / 0.5451 GB, free: 13.19 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002233/0.7868, allocations: 15.89 kB / 0.5451 GB, free: 13.17 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/0.7885, allocations: 324.9 kB / 0.5455 GB, free: 12.87 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004578/0.789, allocations: 0.4924 MB / 0.5459 GB, free: 12.38 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02505/0.814, allocations: 12.24 MB / 0.5579 GB, free: 120 kB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06988/0.8839, allocations: 43.71 MB / 0.6006 GB, free: 3.801 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02209/0.9061, allocations: 25.18 MB / 0.6252 GB, free: 7.754 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004734/0.9108, allocations: 2.964 MB / 0.6281 GB, free: 4.781 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003738/0.9112, allocations: 248.1 kB / 0.6283 GB, free: 4.52 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003592/0.9148, allocations: 2.586 MB / 0.6308 GB, free: 1.867 MB / 458.8 MB Notification: Performance of pre-optimization done (n=391): time 5.19e-06/0.9148, allocations: 0 / 0.6308 GB, free: 1.867 MB / 458.8 MB Notification: Performance of matching and sorting (n=397): time 0.03456/0.9494, allocations: 18.11 MB / 0.6485 GB, free: 15.66 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.9496, allocations: 354.8 kB / 0.6488 GB, free: 15.24 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00463/0.9542, allocations: 3.522 MB / 0.6523 GB, free: 11.71 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004196/0.9547, allocations: 93.7 kB / 0.6524 GB, free: 11.61 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001931/0.9566, allocations: 3.377 MB / 0.6557 GB, free: 8.219 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0012/0.9578, allocations: 1.345 MB / 0.657 GB, free: 6.887 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/0.9594, allocations: 1.081 MB / 0.658 GB, free: 5.797 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.9595, allocations: 309 kB / 0.6583 GB, free: 5.492 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003486/0.963, allocations: 2.549 MB / 0.6608 GB, free: 2.938 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1896/1.153, allocations: 4.508 MB / 0.6652 GB, free: 169.1 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009584/1.162, allocations: 7.451 MB / 0.6725 GB, free: 166.3 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/1.162, allocations: 18 kB / 0.6725 GB, free: 166.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01317/1.176, allocations: 8.276 MB / 0.6806 GB, free: 163.2 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.721e-05/1.176, allocations: 56.89 kB / 0.6807 GB, free: 163.2 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-05/1.176, allocations: 58.38 kB / 0.6807 GB, free: 163.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/1.178, allocations: 1.008 MB / 0.6817 GB, free: 163 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004324/1.183, allocations: 1.258 MB / 0.6829 GB, free: 162.8 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/1.193, allocations: 8.226 MB / 0.691 GB, free: 158.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004629/1.198, allocations: 358.6 kB / 0.6913 GB, free: 158.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009418/1.199, allocations: 268.4 kB / 0.6916 GB, free: 158.2 MB / 490.8 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.004647/1.203, allocations: 2.905 MB / 0.6944 GB, free: 156.7 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007831/1.204, allocations: 393 kB / 0.6948 GB, free: 156.7 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008873/1.213, allocations: 6.189 MB / 0.7008 GB, free: 152.7 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/1.213, allocations: 40 kB / 0.7008 GB, free: 152.7 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/1.213, allocations: 8 kB / 0.7009 GB, free: 152.7 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.549e-05/1.213, allocations: 23.64 kB / 0.7009 GB, free: 152.7 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02168/1.235, allocations: 14.91 MB / 0.7154 GB, free: 140.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/1.235, allocations: 4 kB / 0.7154 GB, free: 140.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002649/1.237, allocations: 0.679 MB / 0.7161 GB, free: 139.8 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/1.24, allocations: 0.8782 MB / 0.717 GB, free: 139 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005126/1.24, allocations: 91.97 kB / 0.7171 GB, free: 139 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008391/1.249, allocations: 7.179 MB / 0.7241 GB, free: 131.7 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.249, allocations: 11.94 kB / 0.7241 GB, free: 131.7 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0432/1.292, allocations: 30.06 MB / 0.7534 GB, free: 101.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/1.294, allocations: 0.91 MB / 0.7543 GB, free: 100.4 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/1.294, allocations: 79.92 kB / 0.7544 GB, free: 100.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/1.296, allocations: 195.8 kB / 0.7546 GB, free: 100.1 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005147/1.297, allocations: 275.1 kB / 0.7548 GB, free: 99.82 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/1.297, allocations: 112 kB / 0.755 GB, free: 99.71 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002799/1.3, allocations: 2.363 MB / 0.7573 GB, free: 97.35 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.11e-07/1.3, allocations: 0 / 0.7573 GB, free: 97.35 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.005641/1.305, allocations: 1.763 MB / 0.759 GB, free: 95.59 MB / 490.8 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.0005927/1.306, allocations: 242.2 kB / 0.7592 GB, free: 95.35 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.008552/1.314, allocations: 6.465 MB / 0.7655 GB, free: 88.87 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.314, allocations: 6.625 kB / 0.7655 GB, free: 88.87 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004837/1.319, allocations: 3.079 MB / 0.7685 GB, free: 85.77 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/1.323, allocations: 0.7807 MB / 0.7693 GB, free: 85 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.023/1.346, allocations: 20.08 MB / 0.7889 GB, free: 64.79 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004228/1.351, allocations: 5.122 MB / 0.7939 GB, free: 59.62 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.00443/1.355, allocations: 1.597 MB / 0.7955 GB, free: 58.02 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00091/1.356, allocations: 335.4 kB / 0.7958 GB, free: 57.7 MB / 490.8 MB Notification: Performance of SimCode: time 9.72e-07/1.356, allocations: 0 / 0.7958 GB, free: 57.7 MB / 490.8 MB Notification: Performance of Templates: time 0.2633/1.619, allocations: 66.74 MB / 0.861 GB, free: 145.9 MB / 490.8 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)