Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",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.006575/0.006575, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.449/1.449, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001416/0.001416, allocations: 192.4 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03424/0.03424, allocations: 8.803 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 75.89 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1209, allocations: 51.57 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02793/0.1489, allocations: 25.42 MB / 0.5278 GB, free: 444 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2974/0.4464, allocations: 7.995 MB / 0.5356 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006724/0.4532, allocations: 173.9 kB / 0.5357 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01647/0.4697, allocations: 6.144 MB / 0.5417 GB, free: 3.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.4812, allocations: 2.775 MB / 0.5444 GB, free: 3.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005072/0.4863, allocations: 1.621 MB / 0.546 GB, free: 2.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01157/0.4979, allocations: 7.282 MB / 0.5531 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02404/0.522, allocations: 13.36 MB / 0.5662 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007644/0.5297, allocations: 3.749 MB / 0.5698 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00876/0.5385, allocations: 4.22 MB / 0.574 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003939/0.5425, allocations: 1.07 MB / 0.575 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005553/0.548, allocations: 1.445 MB / 0.5764 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003247/0.5513, allocations: 2.137 MB / 0.5785 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007985/0.5593, allocations: 4.112 MB / 0.5825 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01756/0.5769, allocations: 14.47 MB / 0.5967 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.577, allocations: 0 / 0.5967 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.577, allocations: 0 / 0.5967 GB, free: 14.83 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000395/0.5774, allocations: 0 / 0.5967 GB, free: 14.83 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02881/0.6062, allocations: 8.929 MB / 0.6054 GB, free: 5.875 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.6063, allocations: 12.03 kB / 0.6054 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003389/0.6097, allocations: 1.043 MB / 0.6064 GB, free: 4.816 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02565/0.6354, allocations: 4.438 MB / 0.6107 GB, free: 436 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01257/0.648, allocations: 4.634 MB / 0.6153 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.6485, allocations: 485.5 kB / 0.6157 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002377/0.6508, allocations: 0.6326 MB / 0.6163 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.6756, allocations: 10.36 MB / 0.6265 GB, free: 276 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002272/0.6759, allocations: 7.953 kB / 0.6265 GB, free: 268 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/0.6774, allocations: 268.2 kB / 0.6267 GB, free: 8 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004283/0.6779, allocations: 417.7 kB / 0.6271 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0212/0.6991, allocations: 9.872 MB / 0.6368 GB, free: 5.707 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06635/0.7655, allocations: 35.4 MB / 0.6713 GB, free: 1.316 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01986/0.7854, allocations: 20.66 MB / 0.6915 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004017/0.7895, allocations: 2.304 MB / 0.6938 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003466/0.7898, allocations: 223.4 kB / 0.694 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/0.7899, allocations: 64.89 kB / 0.694 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.448e-06/0.7899, allocations: 0 / 0.694 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02242/0.8123, allocations: 10.96 MB / 0.7047 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.8124, allocations: 85.72 kB / 0.7048 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005364/0.8178, allocations: 3.029 MB / 0.7078 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006207/0.8185, allocations: 77.7 kB / 0.7079 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002175/0.8207, allocations: 2.961 MB / 0.7107 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001691/0.8224, allocations: 1.085 MB / 0.7118 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/0.8239, allocations: 0.9138 MB / 0.7127 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.983e-05/0.824, allocations: 301.1 kB / 0.713 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003142/0.8272, allocations: 2.027 MB / 0.715 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004296/0.8315, allocations: 3.728 MB / 0.7186 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007728/0.8392, allocations: 6.047 MB / 0.7245 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.251e-05/0.8393, allocations: 19.98 kB / 0.7245 GB, free: 6.383 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2459/1.085, allocations: 6.639 MB / 0.731 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.811e-05/1.085, allocations: 28.28 kB / 0.731 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/1.085, allocations: 54.94 kB / 0.7311 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/1.087, allocations: 0.6759 MB / 0.7318 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004193/1.091, allocations: 1.068 MB / 0.7328 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/1.102, allocations: 6.222 MB / 0.7389 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004649/1.106, allocations: 279.8 kB / 0.7391 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009279/1.107, allocations: 232 kB / 0.7394 GB, free: 162.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * 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 (560): * Single equations (assignments): 559 * 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,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00431/1.112, allocations: 2.308 MB / 0.7416 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009075/1.112, allocations: 341.2 kB / 0.7419 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008892/1.121, allocations: 4.631 MB / 0.7465 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.208e-05/1.121, allocations: 31.56 kB / 0.7465 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.917e-05/1.121, allocations: 4.812 kB / 0.7465 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-05/1.121, allocations: 16.39 kB / 0.7465 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02235/1.144, allocations: 11.09 MB / 0.7573 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/1.144, allocations: 5.438 kB / 0.7574 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/1.146, allocations: 0.5329 MB / 0.7579 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/1.148, allocations: 0.5757 MB / 0.7584 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/1.148, allocations: 67.7 kB / 0.7585 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006493/1.155, allocations: 5.457 MB / 0.7638 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.155, allocations: 7.531 kB / 0.7638 GB, free: 154.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/1.165, allocations: 6.607 MB / 0.7703 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/1.167, allocations: 0.7379 MB / 0.771 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008147/1.168, allocations: 59.47 kB / 0.7711 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/1.17, allocations: 146 kB / 0.7712 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003874/1.17, allocations: 208 kB / 0.7714 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001622/1.17, allocations: 93.48 kB / 0.7715 GB, free: 151 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002656/1.173, allocations: 2.017 MB / 0.7735 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.6e-07/1.173, allocations: 0 / 0.7735 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004213/1.177, allocations: 1.167 MB / 0.7746 GB, free: 150.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * 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 (291): * Single equations (assignments): 290 * 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,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008686/1.186, allocations: 7.297 MB / 0.7817 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007923/1.194, allocations: 5.033 MB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/1.194, allocations: 3.531 kB / 0.7866 GB, free: 144.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003399/1.197, allocations: 2.276 MB / 0.7889 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/1.201, allocations: 0.6341 MB / 0.7895 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05814/1.259, allocations: 39.07 MB / 0.8276 GB, free: 100.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003408/1.262, allocations: 4.146 MB / 0.8317 GB, free: 96.37 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003326/1.266, allocations: 1.334 MB / 0.833 GB, free: 95.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002689/1.268, allocations: 2.245 MB / 0.8352 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of SimCode: time 1.172e-06/1.268, allocations: 0 / 0.8352 GB, free: 92.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.118/1.386, allocations: 88.42 MB / 0.9215 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.25/17.64, allocations: 10.73 kB / 0.9215 GB, free: 4.695 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)