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-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: "" <> 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.0009706/0.0009705, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.26/1.26, allocations: 222.9 MB / 238.9 MB, free: 4.746 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.00123/0.001231, allocations: 180.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03342/0.03342, allocations: 8.791 MB / 348.1 MB, free: 4.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 77.38 kB / 410.5 MB, free: 42.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06823/0.06959, allocations: 51.56 MB / 462.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02317/0.09279, allocations: 27.16 MB / 489.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1056, allocations: 7.941 MB / 497.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003956/0.1095, allocations: 203.4 kB / 497.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01489/0.1245, allocations: 7.494 MB / 0.493 GB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007737/0.1322, allocations: 2.459 MB / 0.4954 GB, free: 1.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004717/0.137, allocations: 1.714 MB / 0.4971 GB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00986/0.1468, allocations: 9.606 MB / 0.5065 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02309/0.1699, allocations: 17.68 MB / 0.5238 GB, free: 4.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.159/0.3289, allocations: 4.575 MB / 0.5282 GB, free: 17.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006606/0.3356, allocations: 5.682 MB / 0.5338 GB, free: 17.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002599/0.3382, allocations: 1.035 MB / 0.5348 GB, free: 17.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/0.3418, allocations: 1.392 MB / 0.5361 GB, free: 17.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001831/0.3437, allocations: 2.437 MB / 0.5385 GB, free: 17.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005599/0.3493, allocations: 5.218 MB / 0.5436 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.362, allocations: 19.83 MB / 0.563 GB, free: 9.434 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.362, allocations: 3.125 kB / 0.563 GB, free: 9.434 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.362, allocations: 0 / 0.563 GB, free: 9.434 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004162/0.3624, allocations: 0 / 0.563 GB, free: 9.434 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.02739/0.3898, allocations: 11.64 MB / 0.5744 GB, free: 3.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3899, allocations: 7.844 kB / 0.5744 GB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001975/0.3919, allocations: 1.324 MB / 0.5757 GB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02668/0.4186, allocations: 5.564 MB / 0.5811 GB, free: 296 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.4295, allocations: 6.013 MB / 0.587 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004756/0.43, allocations: 0.6989 MB / 0.5876 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002688/0.4327, allocations: 0.9027 MB / 0.5885 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03515/0.4679, allocations: 14.86 MB / 0.603 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002483/0.4682, allocations: 15.81 kB / 0.603 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001687/0.4699, allocations: 384.5 kB / 0.6034 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006259/0.4705, allocations: 0.5153 MB / 0.6039 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0256/0.4961, allocations: 13.57 MB / 0.6172 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06788/0.564, allocations: 46.61 MB / 0.6627 GB, free: 14.61 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01912/0.5832, allocations: 28.3 MB / 0.6903 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004628/0.5878, allocations: 3.022 MB / 0.6933 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003624/0.5882, allocations: 240.8 kB / 0.6935 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.905e-05/0.5883, allocations: 73.52 kB / 0.6936 GB, free: 11.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.229e-06/0.5883, allocations: 0 / 0.6936 GB, free: 11.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.1838/0.7721, allocations: 14.56 MB / 0.7078 GB, free: 163.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.7722, allocations: 90.22 kB / 0.7079 GB, free: 163.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/0.777, allocations: 3.483 MB / 0.7113 GB, free: 163.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004815/0.7775, allocations: 87.8 kB / 0.7114 GB, free: 163.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.7794, allocations: 3.954 MB / 0.7152 GB, free: 161.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/0.7804, allocations: 1.306 MB / 0.7165 GB, free: 160.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001625/0.7821, allocations: 1.149 MB / 0.7176 GB, free: 160.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.306e-05/0.7821, allocations: 306.2 kB / 0.7179 GB, free: 159.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003442/0.7856, allocations: 2.548 MB / 0.7204 GB, free: 159.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004156/0.7897, allocations: 5.007 MB / 0.7253 GB, free: 156.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007513/0.7972, allocations: 8.21 MB / 0.7333 GB, free: 152.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.187e-05/0.7973, allocations: 23.72 kB / 0.7333 GB, free: 152.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01089/0.8082, allocations: 8.486 MB / 0.7416 GB, free: 149.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.779e-05/0.8083, allocations: 47.38 kB / 0.7417 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/0.8084, allocations: 85.81 kB / 0.7417 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.8104, allocations: 0.8301 MB / 0.7426 GB, free: 149 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/0.8144, allocations: 1.338 MB / 0.7439 GB, free: 148.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007729/0.8222, allocations: 7.079 MB / 0.7508 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00366/0.8258, allocations: 325.5 kB / 0.7511 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004328/0.8263, allocations: 296 kB / 0.7514 GB, free: 144.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004453/0.8307, allocations: 3.48 MB / 0.7548 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006693/0.8314, allocations: 388.2 kB / 0.7551 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007594/0.839, allocations: 5.85 MB / 0.7608 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/0.8391, allocations: 40 kB / 0.7609 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.8391, allocations: 8 kB / 0.7609 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.924e-05/0.8391, allocations: 22.92 kB / 0.7609 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02082/0.8599, allocations: 14.78 MB / 0.7753 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.86, allocations: 4 kB / 0.7753 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/0.8622, allocations: 0.6709 MB / 0.776 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.864, allocations: 0.6942 MB / 0.7767 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002344/0.8642, allocations: 84.84 kB / 0.7768 GB, free: 122.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006315/0.8705, allocations: 6.152 MB / 0.7828 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.8706, allocations: 4 kB / 0.7828 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009263/0.8798, allocations: 8.535 MB / 0.7911 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/0.8813, allocations: 0.8551 MB / 0.7919 GB, free: 106.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004333/0.8817, allocations: 75.98 kB / 0.792 GB, free: 106.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.8832, allocations: 183.8 kB / 0.7922 GB, free: 106.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003919/0.8836, allocations: 258.7 kB / 0.7924 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/0.8838, allocations: 108 kB / 0.7925 GB, free: 106.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002562/0.8864, allocations: 2.334 MB / 0.7948 GB, free: 103.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8864, allocations: 0 / 0.7948 GB, free: 103.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004169/0.8906, allocations: 1.511 MB / 0.7963 GB, free: 102.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (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 {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009448/0.9, allocations: 9.249 MB / 0.8053 GB, free: 92.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007639/0.9077, allocations: 6.386 MB / 0.8116 GB, free: 86.47 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.9077, allocations: 3.938 kB / 0.8116 GB, free: 86.46 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003259/0.911, allocations: 2.87 MB / 0.8144 GB, free: 83.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003834/0.9148, allocations: 0.8427 MB / 0.8152 GB, free: 82.78 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07644/0.9913, allocations: 62.69 MB / 0.8764 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1513/1.143, allocations: 5.894 MB / 0.8822 GB, free: 169.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005268/1.148, allocations: 1.855 MB / 0.884 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003823/1.152, allocations: 3.082 MB / 0.887 GB, free: 169.1 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/1.152, allocations: 0 / 0.887 GB, free: 169.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1264/1.278, allocations: 114.8 MB / 0.9991 GB, free: 74.29 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/1.278, allocations: 216.2 kB / 0.9993 GB, free: 74.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.631/4.909, allocations: 0 / 0.9993 GB, free: 74.03 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/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)