Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009858/0.0009858, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.342/1.342, allocations: 223.2 MB / 238.9 MB, free: 5.477 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.001204/0.001204, allocations: 185.1 kB / 290.2 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03202/0.03202, allocations: 8.777 MB / 350 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003529, allocations: 13.94 kB / 413.2 MB, free: 42.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 52.56 MB / 465.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02836/0.1465, allocations: 22.2 MB / 487.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.1639, allocations: 7.595 MB / 495.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005886/0.1698, allocations: 179.4 kB / 495.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007952/0.1778, allocations: 1.586 MB / 497.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01164/0.1895, allocations: 2.669 MB / 500 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004724/0.1942, allocations: 1.399 MB / 0.4896 GB, free: 9.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.2072, allocations: 7.806 MB / 0.4972 GB, free: 1.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02975/0.237, allocations: 17.01 MB / 0.5138 GB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005796/0.2428, allocations: 3.45 MB / 0.5172 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006591/0.2494, allocations: 3.91 MB / 0.521 GB, free: 9.371 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001601/0.251, allocations: 0.582 MB / 0.5216 GB, free: 8.789 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002901/0.254, allocations: 0.8823 MB / 0.5225 GB, free: 7.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.2555, allocations: 1.713 MB / 0.5241 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002793/0.2583, allocations: 1.915 MB / 0.526 GB, free: 4.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2381/0.4964, allocations: 17.06 MB / 0.5427 GB, free: 21.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4965, allocations: 1.094 kB / 0.5427 GB, free: 21.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.4965, allocations: 0 / 0.5427 GB, free: 21.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007588/0.4972, allocations: 0 / 0.5427 GB, free: 21.11 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.0326/0.5298, allocations: 9.642 MB / 0.5521 GB, free: 16.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.5299, allocations: 9.781 kB / 0.5521 GB, free: 16.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006656/0.5366, allocations: 1.326 MB / 0.5534 GB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03159/0.5682, allocations: 5.482 MB / 0.5587 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01573/0.584, allocations: 5.95 MB / 0.5645 GB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006997/0.5847, allocations: 0.6921 MB / 0.5652 GB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/0.5887, allocations: 0.9078 MB / 0.5661 GB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03716/0.6259, allocations: 14.72 MB / 0.5805 GB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003487/0.6263, allocations: 14.98 kB / 0.5805 GB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003036/0.6293, allocations: 387.3 kB / 0.5809 GB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004487/0.6298, allocations: 0.5118 MB / 0.5814 GB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03016/0.6599, allocations: 13.5 MB / 0.5945 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09301/0.753, allocations: 46.69 MB / 0.6401 GB, free: 1.898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02457/0.7776, allocations: 28.26 MB / 0.6677 GB, free: 1.941 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001037/0.7788, allocations: 235.5 kB / 0.668 GB, free: 1.688 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000108/0.7789, allocations: 73.17 kB / 0.668 GB, free: 1.609 MB / 446.1 MB Notification: Performance of pre-optimization done (n=375): time 6.643e-06/0.7789, allocations: 0 / 0.668 GB, free: 1.609 MB / 446.1 MB Notification: Performance of matching and sorting (n=382): time 0.03248/0.8114, allocations: 14.47 MB / 0.6822 GB, free: 3.082 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.8115, allocations: 90.41 kB / 0.6822 GB, free: 2.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/0.8169, allocations: 3.411 MB / 0.6856 GB, free: 15.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007398/0.8177, allocations: 85.7 kB / 0.6857 GB, free: 15.48 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003118/0.8208, allocations: 3.959 MB / 0.6895 GB, free: 11.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001642/0.8225, allocations: 1.31 MB / 0.6908 GB, free: 10.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/0.8228, allocations: 120 kB / 0.6909 GB, free: 10.08 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003877/0.8232, allocations: 0.5459 MB / 0.6914 GB, free: 9.523 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004069/0.8272, allocations: 2.541 MB / 0.6939 GB, free: 6.977 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006059/0.8333, allocations: 4.969 MB / 0.6988 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006114/0.8395, allocations: 3.725 MB / 0.7024 GB, free: 13.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-05/0.8396, allocations: 27.56 kB / 0.7024 GB, free: 13.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01578/0.8553, allocations: 8.448 MB / 0.7107 GB, free: 5.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-05/0.8555, allocations: 41.88 kB / 0.7107 GB, free: 5.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/0.8556, allocations: 80 kB / 0.7108 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/0.8578, allocations: 0.8255 MB / 0.7116 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00485/0.8626, allocations: 1.347 MB / 0.7129 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2674/1.13, allocations: 7.134 MB / 0.7199 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0046/1.135, allocations: 320.2 kB / 0.7202 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/1.136, allocations: 302.4 kB / 0.7205 GB, free: 165.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 371 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 709 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007597/1.144, allocations: 3.478 MB / 0.7239 GB, free: 165.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.145, allocations: 391 kB / 0.7243 GB, free: 165.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009629/1.154, allocations: 5.86 MB / 0.73 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/1.154, allocations: 50.97 kB / 0.73 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/1.154, allocations: 7.906 kB / 0.73 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.88e-05/1.154, allocations: 20.34 kB / 0.7301 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/1.177, allocations: 14.38 MB / 0.7441 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/1.177, allocations: 3.562 kB / 0.7441 GB, free: 157.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.18, allocations: 0.6815 MB / 0.7448 GB, free: 157.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/1.182, allocations: 0.689 MB / 0.7454 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/1.182, allocations: 80.22 kB / 0.7455 GB, free: 157 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007473/1.189, allocations: 6.318 MB / 0.7517 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.189, allocations: 3.969 kB / 0.7517 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/1.2, allocations: 8.921 MB / 0.7604 GB, free: 147.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.202, allocations: 0.8581 MB / 0.7612 GB, free: 146.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004455/1.203, allocations: 67.84 kB / 0.7613 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/1.205, allocations: 183.4 kB / 0.7615 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004354/1.205, allocations: 260.8 kB / 0.7617 GB, free: 146.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/1.205, allocations: 117.3 kB / 0.7618 GB, free: 146.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003344/1.209, allocations: 2.269 MB / 0.7641 GB, free: 144.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.209, allocations: 0 / 0.7641 GB, free: 144.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005554/1.214, allocations: 1.507 MB / 0.7655 GB, free: 142.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01062/1.225, allocations: 10.55 MB / 0.7758 GB, free: 132.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008934/1.234, allocations: 6.365 MB / 0.7821 GB, free: 125.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.234, allocations: 0 / 0.7821 GB, free: 125.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.237, allocations: 2.864 MB / 0.7848 GB, free: 122.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003713/1.241, allocations: 0.7981 MB / 0.7856 GB, free: 122.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08455/1.326, allocations: 99.09 MB / 0.8824 GB, free: 20.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005763/1.331, allocations: 6.034 MB / 0.8883 GB, free: 13.97 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004771/1.336, allocations: 1.848 MB / 0.8901 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004083/1.34, allocations: 3.081 MB / 0.8931 GB, free: 9.031 MB / 494.1 MB Notification: Performance of SimCode: time 1.322e-06/1.34, allocations: 0 / 0.8931 GB, free: 9.031 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.382/1.722, allocations: 111.3 MB / 1.002 GB, free: 90.93 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/1.723, allocations: 195.5 kB / 1.002 GB, free: 90.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.728/6.45, allocations: 0 / 1.002 GB, free: 90.68 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) Environment - environmentSimulation: