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.007983/0.007983, allocations: 100.3 kB / 15.73 MB, free: 5.996 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.41/1.41, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001505/0.001505, allocations: 192.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03484/0.03484, allocations: 8.785 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 79.86 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09264, allocations: 51.56 MB / 0.5029 GB, free: 9.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2157/0.3084, allocations: 27.65 MB / 0.5299 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.3212, allocations: 8.028 MB / 0.5378 GB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004808/0.3261, allocations: 205.8 kB / 0.538 GB, free: 4.289 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01751/0.3436, allocations: 7.911 MB / 0.5457 GB, free: 3.234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.3549, allocations: 2.707 MB / 0.5483 GB, free: 2.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007338/0.3622, allocations: 1.825 MB / 0.5501 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01641/0.3786, allocations: 9.69 MB / 0.5596 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03886/0.4176, allocations: 21.19 MB / 0.5803 GB, free: 500 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0091/0.4267, allocations: 5.265 MB / 0.5854 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009425/0.4362, allocations: 5.923 MB / 0.5912 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003885/0.4401, allocations: 1.52 MB / 0.5927 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005605/0.4457, allocations: 1.868 MB / 0.5945 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004273/0.45, allocations: 2.941 MB / 0.5974 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0093/0.4593, allocations: 5.722 MB / 0.603 GB, free: 9.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02195/0.4813, allocations: 20.28 MB / 0.6228 GB, free: 5.625 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4814, allocations: 4 kB / 0.6228 GB, free: 5.621 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4814, allocations: 0 / 0.6228 GB, free: 5.621 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004593/0.4818, allocations: 0 / 0.6228 GB, free: 5.621 MB / 430.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.03225/0.5141, allocations: 11.59 MB / 0.6341 GB, free: 10.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5142, allocations: 16.02 kB / 0.6341 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003915/0.5181, allocations: 1.324 MB / 0.6354 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.549, allocations: 5.584 MB / 0.6409 GB, free: 3.148 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.5629, allocations: 6.184 MB / 0.6469 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006182/0.5635, allocations: 0.6916 MB / 0.6476 GB, free: 12.26 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003241/0.5668, allocations: 0.9076 MB / 0.6485 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03299/0.5998, allocations: 14.87 MB / 0.663 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002141/0.6, allocations: 11.91 kB / 0.663 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/0.6013, allocations: 387.8 kB / 0.6634 GB, free: 12.1 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005128/0.6018, allocations: 0.5113 MB / 0.6639 GB, free: 11.59 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/0.6276, allocations: 13.58 MB / 0.6771 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4637/1.091, allocations: 46.08 MB / 0.7221 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/1.109, allocations: 28.3 MB / 0.7498 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004929/1.114, allocations: 3.029 MB / 0.7527 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003452/1.114, allocations: 238.3 kB / 0.7529 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/1.114, allocations: 70.83 kB / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.42e-06/1.114, allocations: 1.125 kB / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.02921/1.144, allocations: 14.64 MB / 0.7673 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/1.144, allocations: 89.91 kB / 0.7674 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004585/1.148, allocations: 3.477 MB / 0.7708 GB, free: 108.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003423/1.149, allocations: 88.02 kB / 0.7709 GB, free: 108.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001952/1.151, allocations: 3.954 MB / 0.7747 GB, free: 105.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.000842/1.151, allocations: 1.314 MB / 0.776 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/1.153, allocations: 1.141 MB / 0.7771 GB, free: 104.2 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.257e-05/1.153, allocations: 313 kB / 0.7774 GB, free: 103.9 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002965/1.156, allocations: 2.55 MB / 0.7799 GB, free: 103 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004213/1.16, allocations: 5.011 MB / 0.7848 GB, free: 98.83 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007395/1.167, allocations: 8.214 MB / 0.7928 GB, free: 92.96 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.5e-05/1.167, allocations: 25.5 kB / 0.7929 GB, free: 92.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01154/1.179, allocations: 8.495 MB / 0.8012 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.506e-05/1.179, allocations: 43.59 kB / 0.8012 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/1.179, allocations: 81.53 kB / 0.8013 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/1.181, allocations: 0.8541 MB / 0.8021 GB, free: 89.38 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003937/1.185, allocations: 1.339 MB / 0.8034 GB, free: 89.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008776/1.194, allocations: 7.663 MB / 0.8109 GB, free: 84.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/1.198, allocations: 324.2 kB / 0.8112 GB, free: 84.24 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005909/1.198, allocations: 299.1 kB / 0.8115 GB, free: 84.19 MB / 0.5138 GB 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.004591/1.203, allocations: 3.477 MB / 0.8149 GB, free: 80.95 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/1.204, allocations: 395.1 kB / 0.8153 GB, free: 80.55 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007804/1.212, allocations: 5.854 MB / 0.821 GB, free: 74.67 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-05/1.212, allocations: 40 kB / 0.821 GB, free: 74.63 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/1.212, allocations: 11.98 kB / 0.821 GB, free: 74.62 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.988e-05/1.212, allocations: 19.78 kB / 0.8211 GB, free: 74.6 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01998/1.232, allocations: 14.5 MB / 0.8352 GB, free: 60.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.232, allocations: 8 kB / 0.8352 GB, free: 60.06 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/1.234, allocations: 0.667 MB / 0.8359 GB, free: 59.39 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001818/1.236, allocations: 0.7093 MB / 0.8366 GB, free: 58.68 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000223/1.236, allocations: 83.92 kB / 0.8366 GB, free: 58.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007202/1.244, allocations: 6.704 MB / 0.8432 GB, free: 51.75 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.244, allocations: 4 kB / 0.8432 GB, free: 51.75 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.254, allocations: 8.55 MB / 0.8515 GB, free: 43.07 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/1.256, allocations: 0.8592 MB / 0.8524 GB, free: 42.19 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005684/1.256, allocations: 75.94 kB / 0.8525 GB, free: 42.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/1.258, allocations: 183.9 kB / 0.8526 GB, free: 41.93 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004248/1.258, allocations: 258.6 kB / 0.8529 GB, free: 41.68 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.258, allocations: 104 kB / 0.853 GB, free: 41.58 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002725/1.261, allocations: 2.342 MB / 0.8553 GB, free: 39.25 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.91e-07/1.261, allocations: 0 / 0.8553 GB, free: 39.25 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005026/1.266, allocations: 1.51 MB / 0.8567 GB, free: 37.74 MB / 0.5138 GB 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.01032/1.277, allocations: 9.269 MB / 0.8658 GB, free: 28.34 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008181/1.285, allocations: 6.422 MB / 0.8721 GB, free: 21.93 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.285, allocations: 0.5 kB / 0.8721 GB, free: 21.93 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003522/1.288, allocations: 2.88 MB / 0.8749 GB, free: 19.04 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/1.292, allocations: 0.893 MB / 0.8757 GB, free: 18.17 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07639/1.369, allocations: 51.11 MB / 0.9257 GB, free: 12.04 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008661/1.377, allocations: 5.898 MB / 0.9314 GB, free: 6.102 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004692/1.382, allocations: 1.856 MB / 0.9332 GB, free: 4.238 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004796/1.387, allocations: 3.085 MB / 0.9362 GB, free: 1.156 MB / 0.5607 GB Notification: Performance of SimCode: time 7.51e-07/1.387, allocations: 0 / 0.9362 GB, free: 1.156 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3755/1.762, allocations: 116 MB / 1.05 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.36/20.13, allocations: 11.83 kB / 1.05 GB, free: 104.1 MB / 0.5607 GB (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)