Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, 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.312/1.312, allocations: 222.9 MB / 239 MB, free: 4.73 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.001392/0.001392, allocations: 184.5 kB / 289.3 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0318/0.0318, allocations: 8.785 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 75.42 kB / 410.6 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 51.57 MB / 462.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02599/0.1276, allocations: 25.03 MB / 487.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01904/0.1467, allocations: 7.828 MB / 495 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006783/0.1536, allocations: 167.5 kB / 495.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01834/0.1719, allocations: 7.229 MB / 0.4906 GB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.183, allocations: 2.77 MB / 0.4933 GB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00692/0.1899, allocations: 1.877 MB / 0.4952 GB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01531/0.2052, allocations: 9.223 MB / 0.5042 GB, free: 8.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03547/0.2407, allocations: 19.76 MB / 0.5235 GB, free: 4.566 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2292/0.47, allocations: 4.764 MB / 0.5281 GB, free: 21.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007941/0.478, allocations: 5.318 MB / 0.5333 GB, free: 21.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004731/0.4828, allocations: 1.354 MB / 0.5346 GB, free: 21.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007486/0.4903, allocations: 1.73 MB / 0.5363 GB, free: 21.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005667/0.496, allocations: 2.678 MB / 0.5389 GB, free: 21.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0151/0.5111, allocations: 5.077 MB / 0.5439 GB, free: 20.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02522/0.5363, allocations: 18.05 MB / 0.5615 GB, free: 14.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5364, allocations: 0 / 0.5615 GB, free: 14.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5364, allocations: 0 / 0.5615 GB, free: 14.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005593/0.537, allocations: 0 / 0.5615 GB, free: 14.83 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.04261/0.5796, allocations: 10.81 MB / 0.5721 GB, free: 8.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.5797, allocations: 9.25 kB / 0.5721 GB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03144/0.6111, allocations: 5.638 MB / 0.5776 GB, free: 5.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/0.6241, allocations: 5.655 MB / 0.5831 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/0.6247, allocations: 0.584 MB / 0.5837 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003837/0.6285, allocations: 0.7698 MB / 0.5844 GB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04243/0.671, allocations: 12.76 MB / 0.5969 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003559/0.6714, allocations: 11.89 kB / 0.5969 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003652/0.675, allocations: 326.9 kB / 0.5972 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005899/0.6756, allocations: 0.489 MB / 0.5977 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0287/0.7043, allocations: 12.24 MB / 0.6096 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08221/0.7866, allocations: 43.71 MB / 0.6523 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02387/0.8105, allocations: 25.18 MB / 0.6769 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005082/0.8156, allocations: 2.978 MB / 0.6798 GB, free: 12.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004405/0.8161, allocations: 242.5 kB / 0.6801 GB, free: 12.01 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0038/0.8199, allocations: 2.582 MB / 0.6826 GB, free: 9.363 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.16e-06/0.8199, allocations: 0 / 0.6826 GB, free: 9.363 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03581/0.8557, allocations: 18.11 MB / 0.7003 GB, free: 7.156 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.8559, allocations: 355.5 kB / 0.7006 GB, free: 6.734 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005011/0.8609, allocations: 3.515 MB / 0.704 GB, free: 3.215 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004967/0.8615, allocations: 97.7 kB / 0.7041 GB, free: 3.113 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.226/1.087, allocations: 3.367 MB / 0.7074 GB, free: 139 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002575/1.09, allocations: 1.353 MB / 0.7087 GB, free: 138.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/1.092, allocations: 1.081 MB / 0.7098 GB, free: 138.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/1.093, allocations: 304.9 kB / 0.7101 GB, free: 138.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003532/1.096, allocations: 2.552 MB / 0.7126 GB, free: 138.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005207/1.101, allocations: 4.515 MB / 0.717 GB, free: 136.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/1.112, allocations: 7.445 MB / 0.7243 GB, free: 133.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/1.112, allocations: 20.72 kB / 0.7243 GB, free: 133.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01492/1.127, allocations: 8.272 MB / 0.7324 GB, free: 133.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/1.127, allocations: 59.48 kB / 0.7324 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.127, allocations: 59.53 kB / 0.7325 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/1.13, allocations: 1.006 MB / 0.7335 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004526/1.134, allocations: 1.257 MB / 0.7347 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/1.146, allocations: 8.828 MB / 0.7433 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/1.151, allocations: 365.1 kB / 0.7437 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006004/1.152, allocations: 264.6 kB / 0.7439 GB, free: 128.8 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.004674/1.156, allocations: 2.906 MB / 0.7467 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007965/1.157, allocations: 381.3 kB / 0.7471 GB, free: 127.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009118/1.166, allocations: 6.189 MB / 0.7531 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.166, allocations: 40 kB / 0.7532 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/1.166, allocations: 12 kB / 0.7532 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.954e-05/1.166, allocations: 18.61 kB / 0.7532 GB, free: 123.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02392/1.19, allocations: 14.91 MB / 0.7678 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.19, allocations: 7.938 kB / 0.7678 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/1.193, allocations: 0.687 MB / 0.7685 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002227/1.195, allocations: 0.8848 MB / 0.7693 GB, free: 109.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004162/1.195, allocations: 84.98 kB / 0.7694 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008874/1.204, allocations: 7.757 MB / 0.777 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.204, allocations: 7.656 kB / 0.777 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/1.217, allocations: 8.769 MB / 0.7855 GB, free: 92.29 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002474/1.219, allocations: 0.9113 MB / 0.7864 GB, free: 91.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007992/1.22, allocations: 75.94 kB / 0.7865 GB, free: 91.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002172/1.222, allocations: 199.7 kB / 0.7867 GB, free: 91.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005966/1.223, allocations: 271 kB / 0.787 GB, free: 90.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.223, allocations: 116 kB / 0.7871 GB, free: 90.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003516/1.227, allocations: 2.363 MB / 0.7894 GB, free: 88.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.227, allocations: 0 / 0.7894 GB, free: 88.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00609/1.233, allocations: 1.456 MB / 0.7908 GB, free: 86.91 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.0007094/1.233, allocations: 255.8 kB / 0.791 GB, free: 86.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02732/1.261, allocations: 11.91 MB / 0.8027 GB, free: 75.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.61e-05/1.261, allocations: 7.844 kB / 0.8027 GB, free: 75.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005174/1.266, allocations: 3.075 MB / 0.8057 GB, free: 72.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004889/1.271, allocations: 0.8048 MB / 0.8065 GB, free: 71.27 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02576/1.297, allocations: 17.19 MB / 0.8233 GB, free: 54.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004325/1.301, allocations: 5 MB / 0.8281 GB, free: 48.97 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004618/1.306, allocations: 1.594 MB / 0.8297 GB, free: 47.38 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009514/1.307, allocations: 330.9 kB / 0.83 GB, free: 47.06 MB / 494.1 MB Notification: Performance of SimCode: time 1.343e-06/1.307, allocations: 4 kB / 0.83 GB, free: 47.05 MB / 494.1 MB Notification: Performance of Templates: time 0.3228/1.629, allocations: 61.94 MB / 0.8905 GB, free: 143.6 MB / 0.4981 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)