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.00128/0.00128, allocations: 105 kB / 15.98 MB, free: 6.352 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.404/1.404, allocations: 222.9 MB / 239.6 MB, free: 4.727 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.001517/0.001517, allocations: 192.4 kB / 289.9 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.03426/0.03426, allocations: 8.792 MB / 348.9 MB, free: 4.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 74.92 kB / 411.2 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 51.56 MB / 462.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02537/0.1271, allocations: 25.03 MB / 487.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01891/0.1461, allocations: 7.828 MB / 495.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006173/0.1523, allocations: 167.5 kB / 495.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01813/0.1705, allocations: 7.233 MB / 0.4913 GB, free: 6.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.1822, allocations: 2.757 MB / 0.494 GB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006734/0.189, allocations: 1.885 MB / 0.4958 GB, free: 1.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01592/0.2049, allocations: 9.22 MB / 0.5048 GB, free: 8.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03579/0.2408, allocations: 19.77 MB / 0.5241 GB, free: 4.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2538/0.4946, allocations: 4.762 MB / 0.5288 GB, free: 21.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007729/0.5024, allocations: 5.315 MB / 0.534 GB, free: 21.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003989/0.5064, allocations: 1.352 MB / 0.5353 GB, free: 21.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006053/0.5124, allocations: 1.732 MB / 0.537 GB, free: 21.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004767/0.5172, allocations: 2.675 MB / 0.5396 GB, free: 20.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01262/0.5299, allocations: 5.085 MB / 0.5445 GB, free: 19.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0165/0.5464, allocations: 15.85 MB / 0.56 GB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.5465, allocations: 0 / 0.56 GB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.5465, allocations: 0 / 0.56 GB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005667/0.5471, allocations: 0 / 0.56 GB, free: 15.34 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.03527/0.5823, allocations: 10.81 MB / 0.5706 GB, free: 9.762 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.5824, allocations: 7.656 kB / 0.5706 GB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.6133, allocations: 5.628 MB / 0.5761 GB, free: 7.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.6246, allocations: 5.67 MB / 0.5816 GB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.625, allocations: 0.5795 MB / 0.5822 GB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003297/0.6284, allocations: 0.7662 MB / 0.5829 GB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03368/0.662, allocations: 12.76 MB / 0.5954 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003031/0.6624, allocations: 23.17 kB / 0.5954 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002896/0.6653, allocations: 322.2 kB / 0.5957 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000502/0.6658, allocations: 0.489 MB / 0.5962 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0276/0.6934, allocations: 12.25 MB / 0.6082 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08807/0.7815, allocations: 43.71 MB / 0.6508 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02468/0.8062, allocations: 25.18 MB / 0.6754 GB, free: 1.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005553/0.8118, allocations: 2.976 MB / 0.6783 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005341/0.8124, allocations: 236.9 kB / 0.6786 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005048/0.8175, allocations: 2.593 MB / 0.6811 GB, free: 11.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 8.065e-06/0.8175, allocations: 0 / 0.6811 GB, free: 11.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.04644/0.864, allocations: 18.1 MB / 0.6988 GB, free: 9.238 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001756/0.8642, allocations: 354.9 kB / 0.6991 GB, free: 8.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007621/0.8718, allocations: 3.522 MB / 0.7026 GB, free: 5.293 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007637/0.8726, allocations: 85.7 kB / 0.7026 GB, free: 5.203 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.8749, allocations: 3.374 MB / 0.7059 GB, free: 1.809 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001753/0.8767, allocations: 1.349 MB / 0.7072 GB, free: 484 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.229/1.106, allocations: 1.08 MB / 0.7083 GB, free: 166.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.469e-05/1.106, allocations: 305.7 kB / 0.7086 GB, free: 166.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003955/1.11, allocations: 2.553 MB / 0.7111 GB, free: 166.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005263/1.115, allocations: 4.509 MB / 0.7155 GB, free: 164.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/1.126, allocations: 7.449 MB / 0.7228 GB, free: 161.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001358/1.126, allocations: 17.72 kB / 0.7228 GB, free: 161.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01556/1.141, allocations: 8.275 MB / 0.7309 GB, free: 160.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.901e-05/1.142, allocations: 57.2 kB / 0.7309 GB, free: 160.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/1.142, allocations: 62.53 kB / 0.731 GB, free: 160.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002695/1.144, allocations: 1.01 MB / 0.732 GB, free: 160 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004886/1.149, allocations: 1.261 MB / 0.7332 GB, free: 159.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/1.16, allocations: 8.82 MB / 0.7418 GB, free: 155 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004949/1.165, allocations: 355 kB / 0.7421 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/1.166, allocations: 266.6 kB / 0.7424 GB, free: 154.9 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.005341/1.172, allocations: 2.909 MB / 0.7452 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009317/1.173, allocations: 385.9 kB / 0.7456 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009157/1.182, allocations: 6.179 MB / 0.7516 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/1.182, allocations: 40 kB / 0.7517 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/1.182, allocations: 12.44 kB / 0.7517 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.375e-05/1.182, allocations: 23.17 kB / 0.7517 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02391/1.206, allocations: 14.91 MB / 0.7663 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.206, allocations: 8.875 kB / 0.7663 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.209, allocations: 0.6846 MB / 0.767 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/1.211, allocations: 0.8802 MB / 0.7678 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003378/1.211, allocations: 95.12 kB / 0.7679 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008783/1.22, allocations: 7.754 MB / 0.7755 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.22, allocations: 11.97 kB / 0.7755 GB, free: 128.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/1.231, allocations: 8.771 MB / 0.7841 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.233, allocations: 0.91 MB / 0.7849 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008039/1.234, allocations: 76 kB / 0.785 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.236, allocations: 197.8 kB / 0.7852 GB, free: 118.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/1.237, allocations: 271.1 kB / 0.7855 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002085/1.237, allocations: 116 kB / 0.7856 GB, free: 118.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003007/1.24, allocations: 2.363 MB / 0.7879 GB, free: 115.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.24, allocations: 2.719 kB / 0.7879 GB, free: 115.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005144/1.245, allocations: 1.456 MB / 0.7893 GB, free: 114.5 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.0006118/1.246, allocations: 254 kB / 0.7895 GB, free: 114.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02509/1.271, allocations: 11.92 MB / 0.8012 GB, free: 102.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.271, allocations: 4 kB / 0.8012 GB, free: 102.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004437/1.275, allocations: 3.074 MB / 0.8042 GB, free: 99.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/1.279, allocations: 0.8122 MB / 0.805 GB, free: 98.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/1.302, allocations: 16.98 MB / 0.8216 GB, free: 81.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/1.306, allocations: 4.861 MB / 0.8263 GB, free: 76.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00162/1.307, allocations: 371.3 kB / 0.8267 GB, free: 76.14 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/1.307, allocations: 0 / 0.8267 GB, free: 76.14 MB / 494.1 MB Notification: Performance of Templates: time 0.3644/1.672, allocations: 131.6 MB / 0.9552 GB, free: 98.75 MB / 494.1 MB 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)