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.0007263/0.0007263, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.339/1.339, allocations: 223.3 MB / 239.4 MB, free: 5.395 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.0009241/0.0009241, allocations: 172.6 kB / 290.6 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03418/0.03418, allocations: 8.804 MB / 350.5 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003457, allocations: 13.19 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07484/0.0752, allocations: 52.56 MB / 466.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02467/0.09989, allocations: 25.97 MB / 492.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.114, allocations: 7.883 MB / 0.4886 GB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004758/0.1188, allocations: 203.3 kB / 0.4888 GB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005784/0.1246, allocations: 1.649 MB / 0.4904 GB, free: 9.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008226/0.1328, allocations: 2.443 MB / 0.4928 GB, free: 6.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004267/0.1371, allocations: 1.516 MB / 0.4943 GB, free: 5.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01207/0.1492, allocations: 9.584 MB / 0.5036 GB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03244/0.1817, allocations: 21.18 MB / 0.5243 GB, free: 6.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005242/0.1869, allocations: 3.67 MB / 0.5279 GB, free: 2.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1788/0.3658, allocations: 4.482 MB / 0.5323 GB, free: 18.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002231/0.3681, allocations: 0.5869 MB / 0.5329 GB, free: 18.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004321/0.3724, allocations: 0.9429 MB / 0.5338 GB, free: 18.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00227/0.3747, allocations: 1.801 MB / 0.5355 GB, free: 18.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007173/0.3819, allocations: 4.495 MB / 0.5399 GB, free: 18.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01617/0.3981, allocations: 19.04 MB / 0.5585 GB, free: 11.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3981, allocations: 0 / 0.5585 GB, free: 11.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3981, allocations: 3.344 kB / 0.5585 GB, free: 11.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004363/0.3986, allocations: 0 / 0.5585 GB, free: 11.02 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.0256/0.4242, allocations: 9.597 MB / 0.5679 GB, free: 6.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4242, allocations: 9.531 kB / 0.5679 GB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004286/0.4285, allocations: 1.322 MB / 0.5692 GB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02898/0.4575, allocations: 5.584 MB / 0.5747 GB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.4682, allocations: 6.025 MB / 0.5805 GB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.4687, allocations: 0.694 MB / 0.5812 GB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003154/0.4718, allocations: 0.9032 MB / 0.5821 GB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03016/0.502, allocations: 14.87 MB / 0.5966 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002806/0.5023, allocations: 20.36 kB / 0.5966 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001732/0.504, allocations: 385.3 kB / 0.597 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004946/0.5045, allocations: 0.5111 MB / 0.5975 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02836/0.5329, allocations: 13.56 MB / 0.6107 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07298/0.6059, allocations: 46.77 MB / 0.6564 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/0.625, allocations: 28.26 MB / 0.684 GB, free: 10.32 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004594/0.6296, allocations: 3.028 MB / 0.687 GB, free: 7.293 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003173/0.63, allocations: 240 kB / 0.6872 GB, free: 7.031 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.63, allocations: 73.52 kB / 0.6873 GB, free: 6.949 MB / 478.1 MB Notification: Performance of pre-optimization done (n=375): time 5.44e-06/0.63, allocations: 0 / 0.6873 GB, free: 6.949 MB / 478.1 MB Notification: Performance of matching and sorting (n=382): time 0.029/0.659, allocations: 14.59 MB / 0.7015 GB, free: 8.309 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.6591, allocations: 94.41 kB / 0.7016 GB, free: 8.203 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0049/0.664, allocations: 3.479 MB / 0.705 GB, free: 4.723 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.6643, allocations: 85.7 kB / 0.7051 GB, free: 4.633 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.6666, allocations: 3.951 MB / 0.709 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1721/0.8386, allocations: 1.309 MB / 0.7102 GB, free: 168.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007917/0.8394, allocations: 472.1 kB / 0.7107 GB, free: 168.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.309e-05/0.8395, allocations: 301.1 kB / 0.711 GB, free: 168 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003384/0.8429, allocations: 2.548 MB / 0.7135 GB, free: 168 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004277/0.8472, allocations: 5.005 MB / 0.7183 GB, free: 165 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008322/0.8555, allocations: 8.214 MB / 0.7264 GB, free: 161.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.086e-05/0.8556, allocations: 23.62 kB / 0.7264 GB, free: 161.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01247/0.8681, allocations: 8.485 MB / 0.7347 GB, free: 158.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.253e-05/0.8682, allocations: 45.16 kB / 0.7347 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.8683, allocations: 82.03 kB / 0.7348 GB, free: 158.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/0.8703, allocations: 0.8324 MB / 0.7356 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/0.8742, allocations: 1.34 MB / 0.7369 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008146/0.8823, allocations: 7.097 MB / 0.7438 GB, free: 153.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003998/0.8864, allocations: 321.3 kB / 0.7442 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006605/0.887, allocations: 295.4 kB / 0.7444 GB, free: 153.8 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.005588/0.8926, allocations: 3.481 MB / 0.7478 GB, free: 152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007841/0.8934, allocations: 392.4 kB / 0.7482 GB, free: 152 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008269/0.9017, allocations: 5.85 MB / 0.7539 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.9017, allocations: 40 kB / 0.754 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.9018, allocations: 8 kB / 0.754 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.99e-05/0.9018, allocations: 23.81 kB / 0.754 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02059/0.9224, allocations: 14.77 MB / 0.7684 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.9225, allocations: 8.094 kB / 0.7684 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002389/0.9249, allocations: 0.6695 MB / 0.7691 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/0.9266, allocations: 0.6998 MB / 0.7698 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/0.9268, allocations: 83.98 kB / 0.7698 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006683/0.9335, allocations: 6.154 MB / 0.7759 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.9336, allocations: 4 kB / 0.7759 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009655/0.9432, allocations: 8.543 MB / 0.7842 GB, free: 118.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.9447, allocations: 0.863 MB / 0.785 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004339/0.9452, allocations: 71.98 kB / 0.7851 GB, free: 117.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.9468, allocations: 189.3 kB / 0.7853 GB, free: 117.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004198/0.9473, allocations: 257.8 kB / 0.7855 GB, free: 117.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/0.9475, allocations: 112 kB / 0.7856 GB, free: 117.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002925/0.9504, allocations: 2.33 MB / 0.7879 GB, free: 114.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9504, allocations: 4 kB / 0.7879 GB, free: 114.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004948/0.9554, allocations: 1.512 MB / 0.7894 GB, free: 113.4 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.01017/0.9656, allocations: 9.241 MB / 0.7984 GB, free: 104 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008833/0.9744, allocations: 6.396 MB / 0.8047 GB, free: 97.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/0.9745, allocations: 4 kB / 0.8047 GB, free: 97.61 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003831/0.9783, allocations: 2.869 MB / 0.8075 GB, free: 94.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005936/0.9843, allocations: 0.8415 MB / 0.8083 GB, free: 93.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07979/1.064, allocations: 62.74 MB / 0.8696 GB, free: 25.71 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00497/1.069, allocations: 5.898 MB / 0.8753 GB, free: 19.77 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004822/1.074, allocations: 1.856 MB / 0.8771 GB, free: 17.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004371/1.078, allocations: 3.085 MB / 0.8802 GB, free: 14.82 MB / 494.1 MB Notification: Performance of SimCode: time 8.21e-07/1.078, allocations: 0 / 0.8802 GB, free: 14.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3095/1.388, allocations: 113.3 MB / 0.9908 GB, free: 81.39 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001292/1.388, allocations: 218.2 kB / 0.991 GB, free: 81.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.735/5.123, allocations: 4 kB / 0.991 GB, free: 81.13 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)