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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.37/1.37, allocations: 222.9 MB / 240.1 MB, free: 4.391 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.00147/0.00147, allocations: 184.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03389/0.03389, allocations: 8.793 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 87.88 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1024, allocations: 51.56 MB / 0.5041 GB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.2558/0.3583, allocations: 25.42 MB / 0.5289 GB, free: 4.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01544/0.3738, allocations: 7.942 MB / 0.5367 GB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005863/0.3797, allocations: 174.4 kB / 0.5368 GB, free: 4.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01722/0.397, allocations: 7.647 MB / 0.5443 GB, free: 3.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.4077, allocations: 3.044 MB / 0.5473 GB, free: 3.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006429/0.4142, allocations: 2.015 MB / 0.5492 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01765/0.4318, allocations: 9.225 MB / 0.5583 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02708/0.459, allocations: 17.26 MB / 0.5751 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00921/0.4682, allocations: 4.768 MB / 0.5798 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009413/0.4777, allocations: 5.233 MB / 0.5849 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004075/0.4818, allocations: 1.355 MB / 0.5862 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007083/0.4889, allocations: 1.713 MB / 0.5879 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005265/0.4942, allocations: 2.673 MB / 0.5905 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0109/0.5052, allocations: 5.084 MB / 0.5954 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02307/0.5283, allocations: 18.15 MB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5283, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5283, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005074/0.5289, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.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.03462/0.5635, allocations: 10.76 MB / 0.6237 GB, free: 4.844 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.5636, allocations: 8.031 kB / 0.6237 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03232/0.5959, allocations: 5.676 MB / 0.6292 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.6101, allocations: 5.794 MB / 0.6349 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000689/0.6108, allocations: 0.5828 MB / 0.6355 GB, free: 8.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003378/0.6142, allocations: 0.76 MB / 0.6362 GB, free: 8.078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0332/0.6474, allocations: 12.76 MB / 0.6487 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003791/0.6479, allocations: 11.91 kB / 0.6487 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002656/0.6505, allocations: 325.8 kB / 0.649 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000644/0.6512, allocations: 0.5005 MB / 0.6495 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02761/0.6788, allocations: 12.25 MB / 0.6614 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07649/0.7553, allocations: 43.25 MB / 0.7037 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02419/0.7796, allocations: 25.19 MB / 0.7283 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005513/0.7851, allocations: 2.979 MB / 0.7312 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006186/0.7858, allocations: 242.5 kB / 0.7314 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4548/1.241, allocations: 2.577 MB / 0.7339 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.082e-05/1.241, allocations: 0.625 kB / 0.7339 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04125/1.282, allocations: 18.1 MB / 0.7516 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/1.282, allocations: 353.5 kB / 0.752 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007019/1.289, allocations: 3.517 MB / 0.7554 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006885/1.29, allocations: 91.98 kB / 0.7555 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002291/1.292, allocations: 3.371 MB / 0.7588 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00161/1.294, allocations: 1.353 MB / 0.7601 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001851/1.296, allocations: 1.081 MB / 0.7611 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.014e-05/1.296, allocations: 306.3 kB / 0.7614 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004128/1.3, allocations: 2.55 MB / 0.7639 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004857/1.305, allocations: 4.508 MB / 0.7683 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008539/1.313, allocations: 7.463 MB / 0.7756 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/1.313, allocations: 15.81 kB / 0.7756 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01408/1.328, allocations: 8.272 MB / 0.7837 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/1.328, allocations: 63.27 kB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/1.328, allocations: 60.41 kB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/1.33, allocations: 0.9976 MB / 0.7848 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/1.335, allocations: 1.264 MB / 0.786 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.345, allocations: 8.799 MB / 0.7946 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004581/1.35, allocations: 363.8 kB / 0.795 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009757/1.351, allocations: 274.1 kB / 0.7952 GB, free: 136.7 MB / 0.5294 GB 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.005085/1.356, allocations: 2.897 MB / 0.7981 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.357, allocations: 388.6 kB / 0.7984 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009029/1.366, allocations: 6.183 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.911e-05/1.366, allocations: 40 kB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/1.366, allocations: 12 kB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.056e-05/1.366, allocations: 19.92 kB / 0.8045 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02422/1.39, allocations: 14.63 MB / 0.8188 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/1.391, allocations: 8 kB / 0.8188 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002443/1.393, allocations: 0.6787 MB / 0.8195 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00229/1.395, allocations: 0.8736 MB / 0.8204 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003935/1.396, allocations: 96.03 kB / 0.8204 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008576/1.404, allocations: 7.751 MB / 0.828 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.404, allocations: 10.84 kB / 0.828 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/1.416, allocations: 8.771 MB / 0.8366 GB, free: 94.61 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.418, allocations: 0.9101 MB / 0.8375 GB, free: 93.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008413/1.419, allocations: 76 kB / 0.8376 GB, free: 93.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/1.421, allocations: 203.6 kB / 0.8377 GB, free: 93.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/1.422, allocations: 275.1 kB / 0.838 GB, free: 93.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/1.422, allocations: 116 kB / 0.8381 GB, free: 93.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003051/1.425, allocations: 2.367 MB / 0.8404 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.51e-07/1.425, allocations: 0 / 0.8404 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005422/1.43, allocations: 1.443 MB / 0.8418 GB, free: 89.22 MB / 0.5294 GB 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.0006108/1.431, allocations: 252 kB / 0.8421 GB, free: 88.97 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00914/1.44, allocations: 6.478 MB / 0.8484 GB, free: 82.48 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.44, allocations: 4.062 kB / 0.8484 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004752/1.445, allocations: 3.085 MB / 0.8514 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004349/1.449, allocations: 0.8085 MB / 0.8522 GB, free: 78.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/1.471, allocations: 13.55 MB / 0.8654 GB, free: 64.94 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004407/1.475, allocations: 4.859 MB / 0.8702 GB, free: 60.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001667/1.477, allocations: 371.3 kB / 0.8705 GB, free: 59.68 MB / 0.5294 GB Notification: Performance of SimCode: time 1.423e-06/1.477, allocations: 0 / 0.8705 GB, free: 59.68 MB / 0.5294 GB Notification: Performance of Templates: time 0.3912/1.868, allocations: 132.3 MB / 0.9998 GB, free: 135 MB / 0.545 GB 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)