Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",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.001417/0.001417, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.31/1.31, allocations: 222.9 MB / 239 MB, free: 4.719 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.001224/0.001224, allocations: 184.5 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03492/0.03492, allocations: 8.794 MB / 348.2 MB, free: 4.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 78.02 kB / 410.7 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06788/0.06939, allocations: 51.56 MB / 462.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02359/0.09302, allocations: 25.02 MB / 487.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.1068, allocations: 7.824 MB / 495.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003647/0.1105, allocations: 167.5 kB / 495.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01593/0.1264, allocations: 7.235 MB / 0.4907 GB, free: 6.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008168/0.1346, allocations: 2.762 MB / 0.4934 GB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004647/0.1393, allocations: 1.886 MB / 0.4953 GB, free: 1.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01001/0.1493, allocations: 9.209 MB / 0.5043 GB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02197/0.1713, allocations: 19.77 MB / 0.5236 GB, free: 4.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.158/0.3293, allocations: 4.761 MB / 0.5282 GB, free: 21.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006388/0.3357, allocations: 5.322 MB / 0.5334 GB, free: 21.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003041/0.3388, allocations: 1.352 MB / 0.5347 GB, free: 21.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.343, allocations: 1.723 MB / 0.5364 GB, free: 21.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002608/0.3456, allocations: 2.683 MB / 0.539 GB, free: 21.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007753/0.3534, allocations: 5.084 MB / 0.544 GB, free: 20.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.3692, allocations: 18.04 MB / 0.5616 GB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.381e-06/0.3692, allocations: 9.594 kB / 0.5616 GB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3692, allocations: 0 / 0.5616 GB, free: 14.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004061/0.3697, allocations: 0 / 0.5616 GB, free: 14.88 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.02812/0.3978, allocations: 10.8 MB / 0.5722 GB, free: 8.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.3978, allocations: 14.06 kB / 0.5722 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002606/0.4005, allocations: 1.267 MB / 0.5734 GB, free: 7.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03046/0.4309, allocations: 5.634 MB / 0.5789 GB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009943/0.4409, allocations: 5.662 MB / 0.5845 GB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.4412, allocations: 0.5911 MB / 0.585 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001897/0.4431, allocations: 0.7683 MB / 0.5858 GB, free: 228 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02573/0.4689, allocations: 12.76 MB / 0.5983 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001954/0.4691, allocations: 23.08 kB / 0.5983 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001065/0.4702, allocations: 322.9 kB / 0.5986 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004483/0.4706, allocations: 0.4929 MB / 0.5991 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02197/0.4926, allocations: 12.25 MB / 0.611 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06413/0.5568, allocations: 43.72 MB / 0.6537 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02142/0.5782, allocations: 25.17 MB / 0.6783 GB, free: 13.99 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004299/0.5826, allocations: 2.983 MB / 0.6812 GB, free: 11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003349/0.5829, allocations: 238.6 kB / 0.6815 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003568/0.5865, allocations: 2.586 MB / 0.684 GB, free: 8.094 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.971e-06/0.5865, allocations: 0 / 0.684 GB, free: 8.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03439/0.6209, allocations: 18.11 MB / 0.7017 GB, free: 5.883 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.6211, allocations: 359.3 kB / 0.702 GB, free: 5.461 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/0.6259, allocations: 3.515 MB / 0.7054 GB, free: 1.941 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002919/0.6262, allocations: 93.7 kB / 0.7055 GB, free: 1.844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.156/0.7822, allocations: 3.376 MB / 0.7088 GB, free: 166.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/0.7834, allocations: 1.354 MB / 0.7101 GB, free: 165.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001567/0.785, allocations: 1.078 MB / 0.7112 GB, free: 165.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.175e-05/0.785, allocations: 308.1 kB / 0.7115 GB, free: 165.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003339/0.7884, allocations: 2.547 MB / 0.714 GB, free: 165.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/0.7927, allocations: 4.515 MB / 0.7184 GB, free: 163.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008415/0.8011, allocations: 7.451 MB / 0.7257 GB, free: 160.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.562e-05/0.8012, allocations: 16.56 kB / 0.7257 GB, free: 160.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01235/0.8135, allocations: 8.278 MB / 0.7338 GB, free: 158.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.8136, allocations: 58.3 kB / 0.7338 GB, free: 158.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-05/0.8137, allocations: 59 kB / 0.7339 GB, free: 158.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002462/0.8162, allocations: 1.002 MB / 0.7349 GB, free: 158.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003983/0.8202, allocations: 1.263 MB / 0.7361 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/0.8305, allocations: 8.829 MB / 0.7447 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/0.8342, allocations: 354.7 kB / 0.745 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004069/0.8346, allocations: 271.7 kB / 0.7453 GB, free: 153 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.003803/0.8384, allocations: 2.897 MB / 0.7481 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005961/0.839, allocations: 387.1 kB / 0.7485 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008853/0.8479, allocations: 6.178 MB / 0.7545 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.8479, allocations: 43.94 kB / 0.7546 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.8479, allocations: 12 kB / 0.7546 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.133e-05/0.848, allocations: 18.84 kB / 0.7546 GB, free: 148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/0.8664, allocations: 14.93 MB / 0.7692 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.8664, allocations: 8.094 kB / 0.7692 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002536/0.869, allocations: 0.6831 MB / 0.7699 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/0.8711, allocations: 0.8809 MB / 0.7707 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/0.8714, allocations: 87.97 kB / 0.7708 GB, free: 134 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008656/0.88, allocations: 7.759 MB / 0.7784 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.8801, allocations: 8 kB / 0.7784 GB, free: 126.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.8903, allocations: 8.772 MB / 0.787 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/0.8918, allocations: 0.9062 MB / 0.7878 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000528/0.8923, allocations: 78.91 kB / 0.7879 GB, free: 116.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/0.8943, allocations: 203.7 kB / 0.7881 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004688/0.8947, allocations: 278.8 kB / 0.7884 GB, free: 115.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/0.8949, allocations: 112 kB / 0.7885 GB, free: 115.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.8977, allocations: 2.367 MB / 0.7908 GB, free: 113.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8977, allocations: 0 / 0.7908 GB, free: 113.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003935/0.9016, allocations: 1.453 MB / 0.7922 GB, free: 111.8 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.01038/0.912, allocations: 9.484 MB / 0.8015 GB, free: 102.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02411/0.9361, allocations: 11.91 MB / 0.8131 GB, free: 90.28 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.9362, allocations: 0 / 0.8131 GB, free: 90.28 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/0.94, allocations: 3.075 MB / 0.8161 GB, free: 87.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/0.9437, allocations: 0.8175 MB / 0.8169 GB, free: 86.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08658/1.03, allocations: 59.47 MB / 0.875 GB, free: 22.29 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003868/1.034, allocations: 5.008 MB / 0.8799 GB, free: 17.24 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004193/1.038, allocations: 1.586 MB / 0.8814 GB, free: 15.65 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002975/1.041, allocations: 2.753 MB / 0.8841 GB, free: 12.89 MB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/1.041, allocations: 0 / 0.8841 GB, free: 12.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2727/1.314, allocations: 113.4 MB / 0.9948 GB, free: 84.41 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/1.314, allocations: 228.2 kB / 0.995 GB, free: 84.14 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.984/5.299, allocations: 0 / 0.995 GB, free: 84.14 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)