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.0007737/0.0007737, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.311/1.311, allocations: 223.3 MB / 239 MB, free: 5.449 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.001116/0.001116, allocations: 172.5 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03213/0.03213, allocations: 8.777 MB / 350.1 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003895, allocations: 11.31 kB / 413.3 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1065, allocations: 52.56 MB / 465.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02299/0.1295, allocations: 24.06 MB / 489.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01757/0.1471, allocations: 7.374 MB / 497.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006361/0.1535, allocations: 191.4 kB / 497.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005357/0.1589, allocations: 1.262 MB / 498.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008305/0.1673, allocations: 2.223 MB / 0.4892 GB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004584/0.1719, allocations: 1.187 MB / 0.4904 GB, free: 8.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01505/0.1869, allocations: 10.62 MB / 0.5007 GB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03608/0.223, allocations: 17.22 MB / 0.5175 GB, free: 13.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007285/0.2304, allocations: 3.75 MB / 0.5212 GB, free: 9.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008734/0.2392, allocations: 4.288 MB / 0.5254 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002243/0.2414, allocations: 0.5859 MB / 0.526 GB, free: 4.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004073/0.2455, allocations: 0.9332 MB / 0.5269 GB, free: 3.422 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002846/0.2484, allocations: 1.767 MB / 0.5286 GB, free: 1.648 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2268/0.4752, allocations: 1.916 MB / 0.5305 GB, free: 22.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01982/0.4951, allocations: 17.12 MB / 0.5472 GB, free: 17.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.965e-05/0.4952, allocations: 0 / 0.5472 GB, free: 17.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4952, allocations: 0 / 0.5472 GB, free: 17.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005866/0.4958, allocations: 0 / 0.5472 GB, free: 17.42 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.02919/0.525, allocations: 9.677 MB / 0.5566 GB, free: 12.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/0.525, allocations: 20.42 kB / 0.5567 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00798/0.533, allocations: 1.323 MB / 0.558 GB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.5633, allocations: 5.586 MB / 0.5634 GB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.5785, allocations: 5.947 MB / 0.5692 GB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001089/0.5796, allocations: 0.6918 MB / 0.5699 GB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004934/0.5846, allocations: 0.9089 MB / 0.5708 GB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04155/0.6261, allocations: 14.78 MB / 0.5852 GB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000327/0.6265, allocations: 22.89 kB / 0.5852 GB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002622/0.6291, allocations: 383.5 kB / 0.5856 GB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004251/0.6296, allocations: 0.5129 MB / 0.5861 GB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02765/0.6572, allocations: 13.49 MB / 0.5993 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08711/0.7444, allocations: 46.73 MB / 0.6449 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02344/0.7679, allocations: 28.26 MB / 0.6725 GB, free: 13 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006343/0.7743, allocations: 3.017 MB / 0.6755 GB, free: 9.98 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005782/0.7749, allocations: 231.5 kB / 0.6757 GB, free: 9.727 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.696e-05/0.775, allocations: 73.52 kB / 0.6757 GB, free: 9.645 MB / 462.1 MB Notification: Performance of pre-optimization done (n=375): time 8.445e-06/0.775, allocations: 4 kB / 0.6757 GB, free: 9.641 MB / 462.1 MB Notification: Performance of matching and sorting (n=382): time 0.03859/0.8136, allocations: 15.48 MB / 0.6909 GB, free: 10.11 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.8137, allocations: 94.39 kB / 0.691 GB, free: 10.01 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007185/0.8209, allocations: 3.447 MB / 0.6943 GB, free: 6.559 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007093/0.8217, allocations: 89.17 kB / 0.6944 GB, free: 6.469 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003096/0.8248, allocations: 3.955 MB / 0.6983 GB, free: 2.488 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001695/0.8265, allocations: 1.304 MB / 0.6995 GB, free: 1.195 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007996/0.8273, allocations: 120 kB / 0.6997 GB, free: 1.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0006197/0.8279, allocations: 0.5459 MB / 0.7002 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2291/1.057, allocations: 2.525 MB / 0.7027 GB, free: 157.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006004/1.063, allocations: 4.979 MB / 0.7075 GB, free: 154.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005633/1.069, allocations: 3.71 MB / 0.7111 GB, free: 153.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-05/1.069, allocations: 26.69 kB / 0.7112 GB, free: 153.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01308/1.082, allocations: 8.43 MB / 0.7194 GB, free: 150.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.692e-05/1.082, allocations: 38.94 kB / 0.7194 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/1.082, allocations: 84.77 kB / 0.7195 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001915/1.084, allocations: 0.8449 MB / 0.7203 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/1.088, allocations: 1.337 MB / 0.7216 GB, free: 149.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008896/1.097, allocations: 7.082 MB / 0.7286 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004524/1.102, allocations: 322.2 kB / 0.7289 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009232/1.103, allocations: 299.6 kB / 0.7292 GB, free: 145.8 MB / 478.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 (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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006641/1.109, allocations: 3.485 MB / 0.7326 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009232/1.11, allocations: 391.4 kB / 0.7329 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009039/1.119, allocations: 5.827 MB / 0.7386 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/1.119, allocations: 47.95 kB / 0.7387 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/1.119, allocations: 8 kB / 0.7387 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-05/1.119, allocations: 23.47 kB / 0.7387 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02149/1.141, allocations: 14.76 MB / 0.7531 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/1.141, allocations: 7.844 kB / 0.7531 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/1.143, allocations: 0.6787 MB / 0.7538 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001586/1.145, allocations: 0.6895 MB / 0.7544 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002065/1.145, allocations: 83.98 kB / 0.7545 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006454/1.151, allocations: 6.129 MB / 0.7605 GB, free: 119.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/1.152, allocations: 11.89 kB / 0.7605 GB, free: 119.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/1.162, allocations: 8.493 MB / 0.7688 GB, free: 110.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/1.163, allocations: 0.8669 MB / 0.7697 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006166/1.164, allocations: 75.98 kB / 0.7697 GB, free: 109.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/1.166, allocations: 183.9 kB / 0.7699 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000378/1.166, allocations: 250.6 kB / 0.7702 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/1.166, allocations: 117.2 kB / 0.7703 GB, free: 108.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00316/1.169, allocations: 2.303 MB / 0.7725 GB, free: 106.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.169, allocations: 0 / 0.7725 GB, free: 106.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007706/1.177, allocations: 1.511 MB / 0.774 GB, free: 105.1 MB / 478.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 (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,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01138/1.188, allocations: 9.2 MB / 0.783 GB, free: 95.81 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009245/1.198, allocations: 6.352 MB / 0.7892 GB, free: 89.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.198, allocations: 0 / 0.7892 GB, free: 89.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003879/1.202, allocations: 2.857 MB / 0.792 GB, free: 86.58 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004239/1.206, allocations: 0.8717 MB / 0.7928 GB, free: 85.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07501/1.281, allocations: 43.64 MB / 0.8354 GB, free: 39.56 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008878/1.29, allocations: 5.898 MB / 0.8412 GB, free: 33.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005523/1.295, allocations: 1.856 MB / 0.843 GB, free: 31.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004614/1.3, allocations: 3.077 MB / 0.846 GB, free: 28.68 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/1.3, allocations: 4 kB / 0.846 GB, free: 28.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3252/1.625, allocations: 111.9 MB / 0.9553 GB, free: 90.74 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001155/1.625, allocations: 196.4 kB / 0.9555 GB, free: 90.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.184/5.81, allocations: 0 / 0.9555 GB, free: 90.5 MB / 478.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: