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.001398/0.001398, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 239.3 MB, free: 4.582 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.001418/0.001418, allocations: 188.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03732/0.03732, allocations: 8.797 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 79.89 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09927, allocations: 51.57 MB / 462.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02593/0.1252, allocations: 25.4 MB / 488.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.1425, allocations: 8.014 MB / 496.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006835/0.1494, allocations: 171.5 kB / 496.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01684/0.1663, allocations: 6.105 MB / 0.4907 GB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008325/0.1746, allocations: 2.749 MB / 0.4934 GB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004761/0.1794, allocations: 1.626 MB / 0.4949 GB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009936/0.1893, allocations: 7.214 MB / 0.502 GB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02234/0.2117, allocations: 13.36 MB / 0.515 GB, free: 13.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005662/0.2174, allocations: 3.721 MB / 0.5187 GB, free: 9.523 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006333/0.2238, allocations: 4.244 MB / 0.5228 GB, free: 5.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002803/0.2266, allocations: 1.07 MB / 0.5239 GB, free: 4.195 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.2309, allocations: 1.433 MB / 0.5253 GB, free: 2.762 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003043/0.234, allocations: 2.151 MB / 0.5274 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1905/0.4245, allocations: 4.107 MB / 0.5314 GB, free: 23.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01842/0.443, allocations: 14.36 MB / 0.5454 GB, free: 21.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.443, allocations: 1.562 kB / 0.5454 GB, free: 21.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.443, allocations: 1.781 kB / 0.5454 GB, free: 21.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003435/0.4434, allocations: 0 / 0.5454 GB, free: 21.86 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02788/0.4713, allocations: 8.808 MB / 0.554 GB, free: 17.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4713, allocations: 14.08 kB / 0.554 GB, free: 17.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003867/0.4752, allocations: 1.043 MB / 0.555 GB, free: 17.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02577/0.501, allocations: 4.383 MB / 0.5593 GB, free: 16.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.5114, allocations: 4.505 MB / 0.5637 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.5118, allocations: 493 kB / 0.5642 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00262/0.5144, allocations: 0.6336 MB / 0.5648 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02595/0.5404, allocations: 10.36 MB / 0.5749 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002167/0.5406, allocations: 15.02 kB / 0.5749 GB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002106/0.5428, allocations: 267.1 kB / 0.5752 GB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004799/0.5433, allocations: 416.4 kB / 0.5756 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01925/0.5625, allocations: 9.864 MB / 0.5852 GB, free: 0.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06709/0.6297, allocations: 35.69 MB / 0.6201 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0225/0.6522, allocations: 20.66 MB / 0.6402 GB, free: 5.301 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004985/0.6572, allocations: 2.296 MB / 0.6425 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004821/0.6578, allocations: 230.6 kB / 0.6427 GB, free: 2.746 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.547e-05/0.6578, allocations: 60.89 kB / 0.6428 GB, free: 2.676 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.44e-06/0.6579, allocations: 0 / 0.6428 GB, free: 2.676 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02649/0.6844, allocations: 10.87 MB / 0.6534 GB, free: 7.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.6845, allocations: 85.78 kB / 0.6535 GB, free: 7.594 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005101/0.6896, allocations: 3.025 MB / 0.6564 GB, free: 4.551 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000549/0.6902, allocations: 69.7 kB / 0.6565 GB, free: 4.477 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001711/0.6919, allocations: 2.866 MB / 0.6593 GB, free: 1.594 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/0.6929, allocations: 1.037 MB / 0.6603 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001403/0.6943, allocations: 0.9016 MB / 0.6612 GB, free: 15.65 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.6944, allocations: 305.1 kB / 0.6615 GB, free: 15.35 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003094/0.6975, allocations: 2.027 MB / 0.6634 GB, free: 13.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004491/0.702, allocations: 3.724 MB / 0.6671 GB, free: 8.828 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008779/0.7108, allocations: 6.051 MB / 0.673 GB, free: 2.207 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-05/0.711, allocations: 20 kB / 0.673 GB, free: 2.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01627/0.7272, allocations: 6.634 MB / 0.6795 GB, free: 11.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.7274, allocations: 28 kB / 0.6795 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/0.7276, allocations: 56 kB / 0.6796 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.7299, allocations: 0.6775 MB / 0.6802 GB, free: 11.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004629/0.7345, allocations: 1.064 MB / 0.6813 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009663/0.7442, allocations: 6.227 MB / 0.6874 GB, free: 3.785 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004595/0.7489, allocations: 283.5 kB / 0.6876 GB, free: 3.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/0.75, allocations: 231.9 kB / 0.6878 GB, free: 3.281 MB / 478.1 MB 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.006911/0.7569, allocations: 2.303 MB / 0.6901 GB, free: 1.039 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/0.7582, allocations: 327.5 kB / 0.6904 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.7695, allocations: 4.633 MB / 0.6949 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.7696, allocations: 32 kB / 0.695 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.7696, allocations: 8 kB / 0.695 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-05/0.7697, allocations: 15.94 kB / 0.695 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02359/0.7933, allocations: 11.27 MB / 0.706 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.7933, allocations: 4 kB / 0.706 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00222/0.7956, allocations: 0.5361 MB / 0.7065 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2044/0.9999, allocations: 0.5615 MB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005822/1.001, allocations: 71.61 kB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007076/1.008, allocations: 5.452 MB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/1.008, allocations: 7.25 kB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/1.02, allocations: 6.592 MB / 0.7189 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/1.022, allocations: 0.7234 MB / 0.7196 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006843/1.023, allocations: 56.38 kB / 0.7197 GB, free: 171.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/1.024, allocations: 146.4 kB / 0.7198 GB, free: 171.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004365/1.025, allocations: 209.3 kB / 0.72 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/1.025, allocations: 90.59 kB / 0.7201 GB, free: 171.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003085/1.028, allocations: 2.016 MB / 0.7221 GB, free: 170.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.028, allocations: 2.906 kB / 0.7221 GB, free: 170.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004292/1.032, allocations: 1.17 MB / 0.7232 GB, free: 170.8 MB / 494.1 MB 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.008651/1.041, allocations: 7.265 MB / 0.7303 GB, free: 167.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01652/1.057, allocations: 8.29 MB / 0.7384 GB, free: 164.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.058, allocations: 0 / 0.7384 GB, free: 164.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003568/1.061, allocations: 2.268 MB / 0.7406 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003365/1.064, allocations: 0.6466 MB / 0.7412 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05633/1.121, allocations: 44.51 MB / 0.7847 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003197/1.124, allocations: 4.153 MB / 0.7888 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003592/1.128, allocations: 1.331 MB / 0.7901 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002688/1.13, allocations: 2.245 MB / 0.7922 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/1.13, allocations: 0 / 0.7922 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1289/1.259, allocations: 90.03 MB / 0.8802 GB, free: 19.24 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.66, allocations: 9.141 kB / 0.8802 GB, free: 19.23 MB / 494.1 MB (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)