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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 105.7 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 239.9 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 195.6 kB / 290.2 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03449/0.03449, allocations: 8.799 MB / 349.2 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 78.8 kB / 411.8 MB, free: 41.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09272/0.09431, allocations: 51.57 MB / 463.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02594/0.1203, allocations: 25.44 MB / 488.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.1369, allocations: 7.94 MB / 496.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005608/0.1426, allocations: 171.5 kB / 496.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01818/0.1608, allocations: 7.646 MB / 0.4927 GB, free: 4.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01113/0.1719, allocations: 3.05 MB / 0.4957 GB, free: 1.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007122/0.1791, allocations: 2.024 MB / 0.4976 GB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01335/0.1925, allocations: 9.163 MB / 0.5066 GB, free: 6.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02876/0.2213, allocations: 17.33 MB / 0.5235 GB, free: 5.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007984/0.2293, allocations: 4.738 MB / 0.5281 GB, free: 480 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2212/0.4506, allocations: 5.261 MB / 0.5333 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00456/0.4552, allocations: 1.355 MB / 0.5346 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00627/0.4615, allocations: 1.721 MB / 0.5363 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00505/0.4666, allocations: 2.678 MB / 0.5389 GB, free: 22.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01267/0.4793, allocations: 5.087 MB / 0.5439 GB, free: 21.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02375/0.5031, allocations: 18.05 MB / 0.5615 GB, free: 16.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.5031, allocations: 4.844 kB / 0.5615 GB, free: 16.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5031, allocations: 0 / 0.5615 GB, free: 16.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005534/0.5037, allocations: 3.094 kB / 0.5615 GB, free: 16.44 MB / 366.1 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.03741/0.5411, allocations: 10.81 MB / 0.5721 GB, free: 9.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.5412, allocations: 13.44 kB / 0.5721 GB, free: 9.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0313/0.5725, allocations: 5.626 MB / 0.5776 GB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.5849, allocations: 5.666 MB / 0.5831 GB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005277/0.5855, allocations: 0.5804 MB / 0.5837 GB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00368/0.5892, allocations: 0.7714 MB / 0.5844 GB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03666/0.6259, allocations: 12.76 MB / 0.5969 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003357/0.6263, allocations: 7.906 kB / 0.5969 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003519/0.6298, allocations: 327.9 kB / 0.5972 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005741/0.6304, allocations: 0.4929 MB / 0.5977 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0291/0.6595, allocations: 12.25 MB / 0.6096 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08078/0.7403, allocations: 43.71 MB / 0.6523 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02534/0.7657, allocations: 25.17 MB / 0.6769 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005337/0.7711, allocations: 2.976 MB / 0.6798 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004385/0.7716, allocations: 241.5 kB / 0.68 GB, free: 13.73 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004303/0.7759, allocations: 2.586 MB / 0.6826 GB, free: 11.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.727e-06/0.7759, allocations: 0 / 0.6826 GB, free: 11.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04192/0.8179, allocations: 18.1 MB / 0.7002 GB, free: 8.867 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/0.8181, allocations: 351.5 kB / 0.7006 GB, free: 8.449 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006518/0.8246, allocations: 3.522 MB / 0.704 GB, free: 4.922 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00081/0.8255, allocations: 85.7 kB / 0.7041 GB, free: 4.832 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002537/0.828, allocations: 3.376 MB / 0.7074 GB, free: 1.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001837/0.8299, allocations: 1.348 MB / 0.7087 GB, free: 104 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2154/1.045, allocations: 1.083 MB / 0.7098 GB, free: 166.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.145e-05/1.045, allocations: 308 kB / 0.7101 GB, free: 166.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/1.049, allocations: 2.55 MB / 0.7126 GB, free: 166.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005645/1.055, allocations: 4.513 MB / 0.717 GB, free: 164.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.066, allocations: 7.443 MB / 0.7242 GB, free: 161.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/1.067, allocations: 22.69 kB / 0.7243 GB, free: 161.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01665/1.083, allocations: 8.272 MB / 0.7323 GB, free: 159.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-05/1.083, allocations: 54.52 kB / 0.7324 GB, free: 159.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/1.084, allocations: 59.5 kB / 0.7324 GB, free: 159.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002717/1.086, allocations: 1.011 MB / 0.7334 GB, free: 159.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004859/1.091, allocations: 1.256 MB / 0.7347 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/1.103, allocations: 8.826 MB / 0.7433 GB, free: 154.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005146/1.108, allocations: 353.9 kB / 0.7436 GB, free: 154.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.109, allocations: 265.1 kB / 0.7439 GB, free: 154.4 MB / 494.1 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.00609/1.115, allocations: 2.918 MB / 0.7467 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/1.116, allocations: 383.8 kB / 0.7471 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009905/1.126, allocations: 6.179 MB / 0.7531 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.141e-05/1.126, allocations: 44 kB / 0.7532 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.126, allocations: 11.94 kB / 0.7532 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-05/1.126, allocations: 22.5 kB / 0.7532 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/1.152, allocations: 14.92 MB / 0.7678 GB, free: 137.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.152, allocations: 8 kB / 0.7678 GB, free: 137.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002606/1.154, allocations: 0.6811 MB / 0.7684 GB, free: 137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/1.157, allocations: 0.8826 MB / 0.7693 GB, free: 136.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004842/1.157, allocations: 91.25 kB / 0.7694 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/1.166, allocations: 7.762 MB / 0.777 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/1.166, allocations: 15.97 kB / 0.777 GB, free: 128.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/1.178, allocations: 8.765 MB / 0.7855 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002262/1.181, allocations: 0.9062 MB / 0.7864 GB, free: 118.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008472/1.181, allocations: 79.98 kB / 0.7865 GB, free: 118.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002211/1.184, allocations: 199.8 kB / 0.7867 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005559/1.184, allocations: 271.9 kB / 0.7869 GB, free: 118.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/1.184, allocations: 108 kB / 0.7871 GB, free: 118 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003522/1.188, allocations: 2.363 MB / 0.7894 GB, free: 115.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.188, allocations: 0 / 0.7894 GB, free: 115.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006819/1.195, allocations: 1.456 MB / 0.7908 GB, free: 114.2 MB / 494.1 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.0008095/1.196, allocations: 255.8 kB / 0.791 GB, free: 114 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02552/1.221, allocations: 11.92 MB / 0.8027 GB, free: 102.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/1.221, allocations: 0 / 0.8027 GB, free: 102.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005166/1.226, allocations: 3.083 MB / 0.8057 GB, free: 99 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004934/1.231, allocations: 0.8185 MB / 0.8065 GB, free: 98.22 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.256, allocations: 13.71 MB / 0.8199 GB, free: 84.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005114/1.261, allocations: 4.858 MB / 0.8246 GB, free: 79.53 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/1.263, allocations: 371.3 kB / 0.825 GB, free: 79.16 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/1.263, allocations: 4 kB / 0.825 GB, free: 79.16 MB / 494.1 MB Notification: Performance of Templates: time 0.3577/1.621, allocations: 131.6 MB / 0.9535 GB, free: 101.6 MB / 494.1 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)