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.001083/0.001083, 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.349/1.349, 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.001524/0.001524, allocations: 196.3 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03415/0.03415, allocations: 8.792 MB / 348.2 MB, free: 4.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 75.25 kB / 410.6 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08832, allocations: 51.57 MB / 462.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02302/0.1114, allocations: 25 MB / 487.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.1265, allocations: 7.831 MB / 495 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004792/0.1313, allocations: 167.5 kB / 495.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01642/0.1478, allocations: 7.233 MB / 0.4906 GB, free: 6.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009801/0.1576, allocations: 2.762 MB / 0.4933 GB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005699/0.1633, allocations: 1.872 MB / 0.4951 GB, free: 1.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.176, allocations: 9.219 MB / 0.5041 GB, free: 8.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02881/0.2049, allocations: 19.78 MB / 0.5234 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2212/0.4261, allocations: 4.762 MB / 0.5281 GB, free: 21.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007958/0.434, allocations: 5.315 MB / 0.5333 GB, free: 21.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004362/0.4384, allocations: 1.357 MB / 0.5346 GB, free: 21.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006048/0.4445, allocations: 1.731 MB / 0.5363 GB, free: 21.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004393/0.4489, allocations: 2.674 MB / 0.5389 GB, free: 21.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01195/0.4609, allocations: 5.08 MB / 0.5439 GB, free: 20.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02435/0.4853, allocations: 18.05 MB / 0.5615 GB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.4853, allocations: 0 / 0.5615 GB, free: 14.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4853, allocations: 0 / 0.5615 GB, free: 14.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005919/0.4859, allocations: 0 / 0.5615 GB, free: 14.8 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.03446/0.5204, allocations: 10.81 MB / 0.5721 GB, free: 8.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.5205, allocations: 10.12 kB / 0.5721 GB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02933/0.5498, allocations: 5.631 MB / 0.5776 GB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.5614, allocations: 5.66 MB / 0.5831 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003995/0.5618, allocations: 0.5798 MB / 0.5837 GB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003149/0.565, allocations: 0.7734 MB / 0.5844 GB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03509/0.6001, allocations: 12.76 MB / 0.5969 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002997/0.6004, allocations: 11.84 kB / 0.5969 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00314/0.6036, allocations: 323 kB / 0.5972 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005736/0.6042, allocations: 0.4929 MB / 0.5977 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03035/0.6345, allocations: 12.24 MB / 0.6096 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.092/0.7266, allocations: 43.71 MB / 0.6523 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02471/0.7513, allocations: 25.17 MB / 0.6769 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005277/0.7566, allocations: 2.976 MB / 0.6798 GB, free: 12.31 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004481/0.7571, allocations: 241.9 kB / 0.68 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00379/0.7609, allocations: 2.589 MB / 0.6826 GB, free: 9.398 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.36e-06/0.7609, allocations: 0 / 0.6826 GB, free: 9.398 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03844/0.7994, allocations: 18.1 MB / 0.7002 GB, free: 7.191 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001789/0.7996, allocations: 355.2 kB / 0.7006 GB, free: 6.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00583/0.8055, allocations: 3.518 MB / 0.704 GB, free: 3.25 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007533/0.8062, allocations: 89.7 kB / 0.7041 GB, free: 3.156 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2343/1.041, allocations: 3.366 MB / 0.7074 GB, free: 167 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002005/1.043, allocations: 1.352 MB / 0.7087 GB, free: 166.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002488/1.045, allocations: 1.082 MB / 0.7098 GB, free: 166.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.261e-05/1.045, allocations: 309.2 kB / 0.7101 GB, free: 166.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004283/1.05, allocations: 2.545 MB / 0.7125 GB, free: 166.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006458/1.056, allocations: 4.51 MB / 0.7169 GB, free: 164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/1.069, allocations: 7.451 MB / 0.7242 GB, free: 161.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.069, allocations: 17.16 kB / 0.7242 GB, free: 161.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01768/1.086, allocations: 8.277 MB / 0.7323 GB, free: 159.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.087, allocations: 58.34 kB / 0.7324 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.087, allocations: 58.66 kB / 0.7324 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002628/1.089, allocations: 1.01 MB / 0.7334 GB, free: 159.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005102/1.094, allocations: 1.256 MB / 0.7346 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/1.106, allocations: 8.833 MB / 0.7433 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005691/1.112, allocations: 355.6 kB / 0.7436 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/1.113, allocations: 263.8 kB / 0.7439 GB, free: 154 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.007566/1.121, allocations: 2.905 MB / 0.7467 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.122, allocations: 385.8 kB / 0.7471 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009531/1.131, allocations: 6.179 MB / 0.7531 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/1.132, allocations: 47.8 kB / 0.7532 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/1.132, allocations: 11.94 kB / 0.7532 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.413e-05/1.132, allocations: 18.52 kB / 0.7532 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02383/1.155, allocations: 14.92 MB / 0.7678 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/1.155, allocations: 8 kB / 0.7678 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002557/1.158, allocations: 0.6802 MB / 0.7684 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002257/1.16, allocations: 0.8813 MB / 0.7693 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004246/1.161, allocations: 87.97 kB / 0.7694 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008643/1.169, allocations: 7.748 MB / 0.7769 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.169, allocations: 11.97 kB / 0.7769 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.181, allocations: 8.784 MB / 0.7855 GB, free: 118.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002467/1.184, allocations: 0.9073 MB / 0.7864 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007513/1.185, allocations: 72.52 kB / 0.7865 GB, free: 117.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001995/1.187, allocations: 199.8 kB / 0.7867 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005649/1.187, allocations: 271.1 kB / 0.7869 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001998/1.188, allocations: 116 kB / 0.787 GB, free: 116.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003436/1.191, allocations: 2.359 MB / 0.7893 GB, free: 114.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.191, allocations: 0 / 0.7893 GB, free: 114.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006074/1.197, allocations: 1.46 MB / 0.7908 GB, free: 113 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.0009749/1.198, allocations: 253.4 kB / 0.791 GB, free: 112.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02528/1.223, allocations: 11.92 MB / 0.8026 GB, free: 100.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.223, allocations: 2 kB / 0.8027 GB, free: 100.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005536/1.229, allocations: 3.077 MB / 0.8057 GB, free: 97.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006739/1.236, allocations: 0.8256 MB / 0.8065 GB, free: 97.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03288/1.269, allocations: 17.17 MB / 0.8232 GB, free: 79.76 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00833/1.277, allocations: 5.004 MB / 0.8281 GB, free: 74.71 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005178/1.282, allocations: 1.59 MB / 0.8297 GB, free: 73.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/1.283, allocations: 331.4 kB / 0.83 GB, free: 72.79 MB / 494.1 MB Notification: Performance of SimCode: time 7.91e-07/1.283, allocations: 0 / 0.83 GB, free: 72.79 MB / 494.1 MB Notification: Performance of Templates: time 0.3116/1.595, allocations: 61.94 MB / 0.8905 GB, free: 147.7 MB / 494.1 MB 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)