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.001286/0.001286, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.339/1.339, allocations: 222.9 MB / 239 MB, free: 4.746 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.001305/0.001305, allocations: 188.5 kB / 289.3 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03294/0.03294, allocations: 8.788 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 77.2 kB / 410.6 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1079, allocations: 51.57 MB / 462.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02474/0.1327, allocations: 25.02 MB / 487.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.1491, allocations: 7.828 MB / 495 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005738/0.1549, allocations: 163.6 kB / 495.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01658/0.1715, allocations: 7.23 MB / 0.4906 GB, free: 6.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.1828, allocations: 2.772 MB / 0.4933 GB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007356/0.1902, allocations: 1.877 MB / 0.4952 GB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01425/0.2045, allocations: 9.217 MB / 0.5042 GB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02757/0.2321, allocations: 19.76 MB / 0.5235 GB, free: 4.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2377/0.4699, allocations: 4.77 MB / 0.5281 GB, free: 21.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01037/0.4803, allocations: 5.315 MB / 0.5333 GB, free: 21.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004993/0.4853, allocations: 1.354 MB / 0.5346 GB, free: 21.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006959/0.4923, allocations: 1.726 MB / 0.5363 GB, free: 21.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004959/0.4973, allocations: 2.676 MB / 0.5389 GB, free: 21.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.5094, allocations: 5.091 MB / 0.5439 GB, free: 19.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0256/0.535, allocations: 18.04 MB / 0.5615 GB, free: 14.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.5351, allocations: 3.984 kB / 0.5615 GB, free: 14.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.5351, allocations: 0.5 kB / 0.5615 GB, free: 14.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000671/0.5357, allocations: 0.9688 kB / 0.5615 GB, free: 14.46 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.04018/0.5759, allocations: 10.8 MB / 0.5721 GB, free: 8.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.576, allocations: 10.25 kB / 0.5721 GB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03081/0.6068, allocations: 5.631 MB / 0.5776 GB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.6214, allocations: 5.661 MB / 0.5831 GB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007632/0.6222, allocations: 0.5805 MB / 0.5837 GB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004086/0.6263, allocations: 0.7699 MB / 0.5844 GB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0351/0.6615, allocations: 12.77 MB / 0.5969 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003673/0.6619, allocations: 11.91 kB / 0.5969 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002867/0.6647, allocations: 325 kB / 0.5972 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005482/0.6653, allocations: 0.4929 MB / 0.5977 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02884/0.6941, allocations: 12.24 MB / 0.6097 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09612/0.7903, allocations: 43.71 MB / 0.6523 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03369/0.8241, allocations: 25.18 MB / 0.6769 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007677/0.8318, allocations: 2.979 MB / 0.6798 GB, free: 12.22 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007436/0.8326, allocations: 241.8 kB / 0.6801 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007079/0.8397, allocations: 2.586 MB / 0.6826 GB, free: 9.309 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 1.192e-05/0.8397, allocations: 0 / 0.6826 GB, free: 9.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04702/0.8868, allocations: 18.11 MB / 0.7003 GB, free: 7.102 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.887, allocations: 351.5 kB / 0.7006 GB, free: 6.684 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006274/0.8933, allocations: 3.522 MB / 0.704 GB, free: 3.156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009029/0.8942, allocations: 93.7 kB / 0.7041 GB, free: 3.059 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2284/1.123, allocations: 3.369 MB / 0.7074 GB, free: 166 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/1.124, allocations: 1.347 MB / 0.7087 GB, free: 165.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002116/1.126, allocations: 1.086 MB / 0.7098 GB, free: 165.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.468e-05/1.127, allocations: 304.9 kB / 0.7101 GB, free: 165.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003899/1.13, allocations: 2.548 MB / 0.7126 GB, free: 165.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/1.136, allocations: 4.507 MB / 0.717 GB, free: 163 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/1.147, allocations: 7.455 MB / 0.7243 GB, free: 160.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000125/1.147, allocations: 17 kB / 0.7243 GB, free: 160.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01933/1.166, allocations: 8.276 MB / 0.7324 GB, free: 158.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.167, allocations: 60.78 kB / 0.7324 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/1.167, allocations: 58.94 kB / 0.7325 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/1.169, allocations: 1.005 MB / 0.7335 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004564/1.174, allocations: 1.259 MB / 0.7347 GB, free: 158.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/1.185, allocations: 8.837 MB / 0.7433 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005033/1.19, allocations: 350.7 kB / 0.7437 GB, free: 153.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009437/1.191, allocations: 267.9 kB / 0.7439 GB, free: 153.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.005002/1.196, allocations: 2.905 MB / 0.7467 GB, free: 151.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008487/1.197, allocations: 394.4 kB / 0.7471 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009609/1.207, allocations: 6.171 MB / 0.7531 GB, free: 148.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.879e-05/1.207, allocations: 40.5 kB / 0.7532 GB, free: 148.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/1.207, allocations: 15.94 kB / 0.7532 GB, free: 148.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.728e-05/1.207, allocations: 20.3 kB / 0.7532 GB, free: 148.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02641/1.233, allocations: 14.91 MB / 0.7678 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.861e-05/1.233, allocations: 10.2 kB / 0.7678 GB, free: 136.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002581/1.236, allocations: 0.683 MB / 0.7685 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002293/1.238, allocations: 0.8809 MB / 0.7693 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004024/1.239, allocations: 87.98 kB / 0.7694 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009153/1.248, allocations: 7.753 MB / 0.777 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.287e-06/1.248, allocations: 17.84 kB / 0.777 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01469/1.262, allocations: 8.771 MB / 0.7856 GB, free: 118 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/1.265, allocations: 0.9101 MB / 0.7864 GB, free: 117.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001355/1.267, allocations: 75.98 kB / 0.7865 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002727/1.269, allocations: 206.4 kB / 0.7867 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000642/1.27, allocations: 271.1 kB / 0.787 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/1.27, allocations: 112 kB / 0.7871 GB, free: 116.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003717/1.274, allocations: 2.363 MB / 0.7894 GB, free: 114.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.274, allocations: 0 / 0.7894 GB, free: 114.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007041/1.281, allocations: 1.451 MB / 0.7908 GB, free: 112.6 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.0009233/1.282, allocations: 254.5 kB / 0.791 GB, free: 112.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02653/1.309, allocations: 11.92 MB / 0.8027 GB, free: 100.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.968e-06/1.309, allocations: 0 / 0.8027 GB, free: 100.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004998/1.314, allocations: 3.082 MB / 0.8057 GB, free: 97.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00476/1.319, allocations: 0.8046 MB / 0.8065 GB, free: 96.64 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02714/1.346, allocations: 17.18 MB / 0.8233 GB, free: 79.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005337/1.351, allocations: 4.997 MB / 0.8281 GB, free: 74.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0048/1.356, allocations: 1.597 MB / 0.8297 GB, free: 72.74 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.357, allocations: 335.4 kB / 0.83 GB, free: 72.41 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/1.357, allocations: 0 / 0.83 GB, free: 72.41 MB / 494.1 MB Notification: Performance of Templates: time 0.2929/1.65, allocations: 61.94 MB / 0.8905 GB, free: 147.2 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)