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.007218/0.007218, allocations: 107.4 kB / 15.74 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.38/1.38, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001466/0.001466, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0363/0.0363, allocations: 8.796 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 79.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1052, allocations: 51.57 MB / 0.5029 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2519/0.3572, allocations: 27.64 MB / 0.5299 GB, free: 4.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.3726, allocations: 8.027 MB / 0.5378 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006616/0.3792, allocations: 207.3 kB / 0.538 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01803/0.3973, allocations: 7.923 MB / 0.5457 GB, free: 3.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.4074, allocations: 2.7 MB / 0.5483 GB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.4132, allocations: 1.825 MB / 0.5501 GB, free: 2.254 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01414/0.4274, allocations: 9.68 MB / 0.5596 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03566/0.4631, allocations: 21.2 MB / 0.5803 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01034/0.4735, allocations: 5.252 MB / 0.5854 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0106/0.4841, allocations: 5.929 MB / 0.5912 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004657/0.4888, allocations: 1.516 MB / 0.5927 GB, free: 4.055 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008379/0.4972, allocations: 1.872 MB / 0.5945 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005102/0.5024, allocations: 2.94 MB / 0.5974 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01147/0.5139, allocations: 5.723 MB / 0.603 GB, free: 9.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02432/0.5382, allocations: 20.27 MB / 0.6228 GB, free: 5.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.5383, allocations: 4 kB / 0.6228 GB, free: 5.652 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5383, allocations: 0 / 0.6228 GB, free: 5.652 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006048/0.5389, allocations: 0 / 0.6228 GB, free: 5.652 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.0361/0.575, allocations: 11.59 MB / 0.6341 GB, free: 10.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.5751, allocations: 8.031 kB / 0.6341 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003606/0.5787, allocations: 1.325 MB / 0.6354 GB, free: 8.727 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03116/0.6099, allocations: 5.597 MB / 0.6408 GB, free: 3.176 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.6254, allocations: 6.184 MB / 0.6469 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007316/0.6261, allocations: 0.6864 MB / 0.6476 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003869/0.63, allocations: 0.911 MB / 0.6484 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03875/0.6688, allocations: 14.86 MB / 0.663 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005598/0.6694, allocations: 19.84 kB / 0.663 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004141/0.6736, allocations: 381 kB / 0.6633 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005263/0.6741, allocations: 0.5152 MB / 0.6638 GB, free: 11.62 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03225/0.7064, allocations: 13.58 MB / 0.6771 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5004/1.207, allocations: 46.08 MB / 0.7221 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01826/1.225, allocations: 28.3 MB / 0.7497 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004997/1.23, allocations: 3.029 MB / 0.7527 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003293/1.231, allocations: 235.2 kB / 0.7529 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/1.231, allocations: 73.8 kB / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.891e-06/1.231, allocations: 0 / 0.753 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.02826/1.259, allocations: 14.64 MB / 0.7673 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/1.259, allocations: 96.03 kB / 0.7674 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004527/1.263, allocations: 3.478 MB / 0.7708 GB, free: 108.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002767/1.264, allocations: 88.58 kB / 0.7709 GB, free: 108.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.266, allocations: 3.951 MB / 0.7747 GB, free: 105.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009082/1.266, allocations: 1.309 MB / 0.776 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/1.268, allocations: 1.146 MB / 0.7771 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.94e-05/1.268, allocations: 305.1 kB / 0.7774 GB, free: 104 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00293/1.271, allocations: 2.549 MB / 0.7799 GB, free: 103 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003975/1.275, allocations: 5.014 MB / 0.7848 GB, free: 98.86 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007666/1.282, allocations: 8.212 MB / 0.7928 GB, free: 92.98 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.391e-05/1.283, allocations: 23.16 kB / 0.7928 GB, free: 92.98 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01144/1.294, allocations: 8.501 MB / 0.8011 GB, free: 89.57 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.517e-05/1.294, allocations: 46.34 kB / 0.8012 GB, free: 89.57 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/1.294, allocations: 80.94 kB / 0.8013 GB, free: 89.57 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/1.296, allocations: 0.8503 MB / 0.8021 GB, free: 89.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/1.301, allocations: 1.345 MB / 0.8034 GB, free: 89.25 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008918/1.309, allocations: 7.661 MB / 0.8109 GB, free: 84.45 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004241/1.314, allocations: 319.3 kB / 0.8112 GB, free: 84.29 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006192/1.314, allocations: 300.4 kB / 0.8115 GB, free: 84.23 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.00488/1.319, allocations: 3.484 MB / 0.8149 GB, free: 81 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008315/1.32, allocations: 391.6 kB / 0.8153 GB, free: 80.61 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007853/1.328, allocations: 5.85 MB / 0.821 GB, free: 74.73 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/1.328, allocations: 42.19 kB / 0.821 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/1.328, allocations: 11.98 kB / 0.821 GB, free: 74.68 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.944e-05/1.328, allocations: 19.92 kB / 0.821 GB, free: 74.66 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02303/1.351, allocations: 14.49 MB / 0.8352 GB, free: 60.13 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-05/1.351, allocations: 12.03 kB / 0.8352 GB, free: 60.12 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.354, allocations: 0.6709 MB / 0.8359 GB, free: 59.45 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/1.355, allocations: 0.7092 MB / 0.8365 GB, free: 58.73 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/1.356, allocations: 79.92 kB / 0.8366 GB, free: 58.66 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007593/1.363, allocations: 6.7 MB / 0.8432 GB, free: 51.82 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.363, allocations: 9.906 kB / 0.8432 GB, free: 51.81 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/1.374, allocations: 8.55 MB / 0.8515 GB, free: 43.13 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002212/1.376, allocations: 0.8592 MB / 0.8524 GB, free: 42.25 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000516/1.377, allocations: 71.94 kB / 0.8524 GB, free: 42.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/1.378, allocations: 183.9 kB / 0.8526 GB, free: 42 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004129/1.379, allocations: 258.6 kB / 0.8529 GB, free: 41.74 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/1.379, allocations: 108 kB / 0.853 GB, free: 41.64 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002824/1.382, allocations: 2.338 MB / 0.8552 GB, free: 39.31 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.9e-07/1.382, allocations: 0 / 0.8552 GB, free: 39.31 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004708/1.386, allocations: 1.514 MB / 0.8567 GB, free: 37.8 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.01047/1.397, allocations: 9.269 MB / 0.8658 GB, free: 28.41 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008805/1.406, allocations: 6.425 MB / 0.872 GB, free: 21.98 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.453e-06/1.406, allocations: 384 / 0.872 GB, free: 21.98 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003755/1.409, allocations: 2.878 MB / 0.8749 GB, free: 19.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004387/1.414, allocations: 0.8941 MB / 0.8757 GB, free: 18.23 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09117/1.505, allocations: 51.11 MB / 0.9256 GB, free: 12.1 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0108/1.516, allocations: 5.89 MB / 0.9314 GB, free: 6.164 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005814/1.522, allocations: 1.86 MB / 0.9332 GB, free: 4.297 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005518/1.527, allocations: 3.081 MB / 0.9362 GB, free: 1.219 MB / 0.5607 GB Notification: Performance of SimCode: time 9.51e-07/1.527, allocations: 0 / 0.9362 GB, free: 1.219 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3749/1.902, allocations: 112.1 MB / 1.046 GB, free: 108.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.47/20.37, allocations: 0 / 1.046 GB, free: 108.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)