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.006802/0.006802, allocations: 102 kB / 15.73 MB, free: 6.035 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.363/1.363, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001431/0.001431, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03495/0.03495, allocations: 8.795 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 75.89 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08432/0.08594, allocations: 51.55 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2122/0.2982, allocations: 27.65 MB / 0.5299 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.3127, allocations: 8.026 MB / 0.5378 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004758/0.3175, allocations: 210.7 kB / 0.538 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01633/0.3338, allocations: 7.916 MB / 0.5457 GB, free: 3.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008687/0.3426, allocations: 2.705 MB / 0.5483 GB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005543/0.3481, allocations: 1.826 MB / 0.5501 GB, free: 2.254 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01327/0.3614, allocations: 9.688 MB / 0.5596 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02987/0.3913, allocations: 21.19 MB / 0.5803 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0116/0.403, allocations: 5.256 MB / 0.5854 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01317/0.4162, allocations: 5.918 MB / 0.5912 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005093/0.4213, allocations: 1.516 MB / 0.5927 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006541/0.4279, allocations: 1.872 MB / 0.5945 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004051/0.432, allocations: 2.939 MB / 0.5974 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008825/0.4408, allocations: 5.723 MB / 0.603 GB, free: 9.598 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02118/0.462, allocations: 20.28 MB / 0.6228 GB, free: 5.652 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.4621, allocations: 0 / 0.6228 GB, free: 5.652 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4621, allocations: 0 / 0.6228 GB, free: 5.652 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004444/0.4625, allocations: 4 kB / 0.6228 GB, free: 5.648 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.03433/0.4969, allocations: 11.58 MB / 0.6341 GB, free: 10.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.4969, allocations: 12.03 kB / 0.6341 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00352/0.5004, allocations: 1.323 MB / 0.6354 GB, free: 8.727 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02817/0.5286, allocations: 5.591 MB / 0.6408 GB, free: 3.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.5404, allocations: 6.184 MB / 0.6469 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005189/0.541, allocations: 0.6873 MB / 0.6476 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002732/0.5437, allocations: 0.907 MB / 0.6484 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02811/0.5719, allocations: 14.87 MB / 0.663 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002194/0.5721, allocations: 11.91 kB / 0.663 GB, free: 12.51 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001179/0.5733, allocations: 382.1 kB / 0.6633 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004557/0.5738, allocations: 0.5152 MB / 0.6638 GB, free: 11.63 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02304/0.5968, allocations: 13.58 MB / 0.6771 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3899/0.9867, allocations: 46.09 MB / 0.7221 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01379/1.001, allocations: 28.29 MB / 0.7497 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/1.004, allocations: 3.037 MB / 0.7527 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002515/1.005, allocations: 236.2 kB / 0.7529 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/1.005, allocations: 75.36 kB / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.239e-06/1.005, allocations: 0 / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.02527/1.03, allocations: 14.64 MB / 0.7673 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/1.03, allocations: 92.47 kB / 0.7674 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004002/1.034, allocations: 3.482 MB / 0.7708 GB, free: 108.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003105/1.034, allocations: 89.33 kB / 0.7709 GB, free: 108.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00145/1.036, allocations: 3.947 MB / 0.7747 GB, free: 105.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007236/1.037, allocations: 1.311 MB / 0.776 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/1.038, allocations: 1.143 MB / 0.7771 GB, free: 104.2 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.338e-05/1.038, allocations: 309 kB / 0.7774 GB, free: 103.9 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002694/1.04, allocations: 2.548 MB / 0.7799 GB, free: 103 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/1.044, allocations: 5.015 MB / 0.7848 GB, free: 98.82 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/1.055, allocations: 8.218 MB / 0.7928 GB, free: 92.95 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.095e-05/1.055, allocations: 23.19 kB / 0.7928 GB, free: 92.95 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01671/1.072, allocations: 8.492 MB / 0.8011 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/1.072, allocations: 42.22 kB / 0.8012 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/1.072, allocations: 82.72 kB / 0.8013 GB, free: 89.55 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/1.075, allocations: 0.8505 MB / 0.8021 GB, free: 89.38 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006259/1.081, allocations: 1.345 MB / 0.8034 GB, free: 89.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/1.094, allocations: 7.657 MB / 0.8109 GB, free: 84.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005409/1.099, allocations: 326.9 kB / 0.8112 GB, free: 84.24 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00059/1.1, allocations: 296.9 kB / 0.8115 GB, free: 84.18 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.005411/1.105, allocations: 3.487 MB / 0.8149 GB, free: 80.96 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.107, allocations: 395.1 kB / 0.8153 GB, free: 80.57 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009511/1.116, allocations: 5.849 MB / 0.821 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.5e-05/1.116, allocations: 42.19 kB / 0.821 GB, free: 74.65 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.116, allocations: 8 kB / 0.821 GB, free: 74.64 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.733e-05/1.116, allocations: 19.92 kB / 0.821 GB, free: 74.62 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02475/1.141, allocations: 14.5 MB / 0.8352 GB, free: 60.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/1.141, allocations: 4 kB / 0.8352 GB, free: 60.09 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00261/1.144, allocations: 0.6748 MB / 0.8359 GB, free: 59.41 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002/1.146, allocations: 0.7058 MB / 0.8365 GB, free: 58.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002784/1.146, allocations: 79.92 kB / 0.8366 GB, free: 58.62 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008314/1.155, allocations: 6.704 MB / 0.8432 GB, free: 51.77 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/1.155, allocations: 4 kB / 0.8432 GB, free: 51.77 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0176/1.172, allocations: 8.554 MB / 0.8515 GB, free: 43.09 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/1.175, allocations: 0.8593 MB / 0.8524 GB, free: 42.21 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.176, allocations: 75.92 kB / 0.8524 GB, free: 42.13 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00331/1.18, allocations: 179.8 kB / 0.8526 GB, free: 41.96 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007691/1.181, allocations: 258.6 kB / 0.8529 GB, free: 41.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003789/1.181, allocations: 112 kB / 0.853 GB, free: 41.59 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005693/1.187, allocations: 2.334 MB / 0.8552 GB, free: 39.27 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/1.187, allocations: 0 / 0.8552 GB, free: 39.27 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009082/1.196, allocations: 1.514 MB / 0.8567 GB, free: 37.76 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.01421/1.21, allocations: 9.265 MB / 0.8658 GB, free: 28.37 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008673/1.219, allocations: 6.433 MB / 0.8721 GB, free: 21.95 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.219, allocations: 0 / 0.8721 GB, free: 21.95 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003717/1.223, allocations: 2.877 MB / 0.8749 GB, free: 19.06 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/1.227, allocations: 0.8796 MB / 0.8757 GB, free: 18.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07811/1.305, allocations: 51.12 MB / 0.9256 GB, free: 12.06 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008249/1.314, allocations: 5.894 MB / 0.9314 GB, free: 6.125 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005047/1.319, allocations: 1.856 MB / 0.9332 GB, free: 4.262 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004699/1.323, allocations: 3.085 MB / 0.9362 GB, free: 1.18 MB / 0.5607 GB Notification: Performance of SimCode: time 9.11e-07/1.323, allocations: 0 / 0.9362 GB, free: 1.18 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3962/1.72, allocations: 115.7 MB / 1.049 GB, free: 104.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/20.69, allocations: 6.656 kB / 1.049 GB, free: 104.3 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)