Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",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.001185/0.001185, allocations: 108 kB / 15.61 MB, free: 152 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.334/1.334, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001961/0.001961, allocations: 192.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03393/0.03393, allocations: 8.804 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 78.69 kB / 411.2 MB, free: 42.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.1002, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02666/0.1269, allocations: 25.42 MB / 488.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01606/0.143, allocations: 8.01 MB / 496.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004713/0.1477, allocations: 171.5 kB / 496.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01491/0.1627, allocations: 6.118 MB / 0.4907 GB, free: 6.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009619/0.1723, allocations: 2.742 MB / 0.4934 GB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005053/0.1774, allocations: 1.62 MB / 0.495 GB, free: 2.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.1889, allocations: 7.223 MB / 0.502 GB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01933/0.2082, allocations: 13.35 MB / 0.515 GB, free: 13.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00557/0.2138, allocations: 3.717 MB / 0.5187 GB, free: 9.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006269/0.2201, allocations: 4.251 MB / 0.5228 GB, free: 5.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00254/0.2227, allocations: 1.074 MB / 0.5239 GB, free: 4.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003787/0.2265, allocations: 1.441 MB / 0.5253 GB, free: 2.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002261/0.2288, allocations: 2.147 MB / 0.5274 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2275/0.4563, allocations: 4.104 MB / 0.5314 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01825/0.4746, allocations: 14.37 MB / 0.5454 GB, free: 21.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.4746, allocations: 1.531 kB / 0.5454 GB, free: 21.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4746, allocations: 0 / 0.5454 GB, free: 21.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003858/0.475, allocations: 0 / 0.5454 GB, free: 21.93 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.028/0.503, allocations: 8.803 MB / 0.554 GB, free: 18.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.5031, allocations: 9.438 kB / 0.554 GB, free: 18.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003443/0.5065, allocations: 1.044 MB / 0.555 GB, free: 17.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03905/0.5456, allocations: 4.387 MB / 0.5593 GB, free: 16.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.014/0.5597, allocations: 4.503 MB / 0.5637 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006225/0.5603, allocations: 495 kB / 0.5642 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003704/0.564, allocations: 0.6348 MB / 0.5648 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03451/0.5986, allocations: 10.36 MB / 0.5749 GB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003625/0.599, allocations: 7.531 kB / 0.5749 GB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002995/0.602, allocations: 273.7 kB / 0.5752 GB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004218/0.6024, allocations: 416.3 kB / 0.5756 GB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02134/0.6238, allocations: 9.865 MB / 0.5852 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.067/0.6908, allocations: 35.69 MB / 0.6201 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/0.7115, allocations: 20.66 MB / 0.6403 GB, free: 5.352 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004458/0.716, allocations: 2.3 MB / 0.6425 GB, free: 3.043 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003922/0.7165, allocations: 225.5 kB / 0.6427 GB, free: 2.797 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.289e-05/0.7165, allocations: 64.89 kB / 0.6428 GB, free: 2.723 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.791e-06/0.7166, allocations: 0 / 0.6428 GB, free: 2.723 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02635/0.7429, allocations: 10.88 MB / 0.6534 GB, free: 7.738 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.743, allocations: 85.78 kB / 0.6535 GB, free: 7.641 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006219/0.7492, allocations: 3.017 MB / 0.6564 GB, free: 4.605 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005185/0.7498, allocations: 77.7 kB / 0.6565 GB, free: 4.523 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/0.752, allocations: 2.866 MB / 0.6593 GB, free: 1.641 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001448/0.7535, allocations: 1.028 MB / 0.6603 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002577/0.756, allocations: 0.9133 MB / 0.6612 GB, free: 15.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.7562, allocations: 301.1 kB / 0.6615 GB, free: 15.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003562/0.7598, allocations: 2.031 MB / 0.6635 GB, free: 13.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004394/0.7642, allocations: 3.721 MB / 0.6671 GB, free: 8.879 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008026/0.7722, allocations: 6.052 MB / 0.673 GB, free: 2.258 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-05/0.7723, allocations: 16 kB / 0.673 GB, free: 2.242 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01212/0.7844, allocations: 6.631 MB / 0.6795 GB, free: 11.92 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.7845, allocations: 30.03 kB / 0.6795 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.082e-05/0.7846, allocations: 56 kB / 0.6796 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.7866, allocations: 0.6789 MB / 0.6802 GB, free: 11.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004312/0.791, allocations: 1.066 MB / 0.6813 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009818/0.8008, allocations: 6.232 MB / 0.6874 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004664/0.8055, allocations: 283.5 kB / 0.6876 GB, free: 3.555 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009914/0.8065, allocations: 224 kB / 0.6879 GB, free: 3.336 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.005087/0.8116, allocations: 2.313 MB / 0.6901 GB, free: 1.086 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.8127, allocations: 320.1 kB / 0.6904 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008897/0.8216, allocations: 4.636 MB / 0.695 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/0.8216, allocations: 35.98 kB / 0.695 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.8217, allocations: 4 kB / 0.695 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/0.8217, allocations: 15.95 kB / 0.695 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/0.8448, allocations: 11.26 MB / 0.706 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.287e-05/0.8449, allocations: 8.031 kB / 0.706 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/0.8472, allocations: 0.5311 MB / 0.7065 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1913/1.038, allocations: 0.5654 MB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005161/1.039, allocations: 69.42 kB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006756/1.046, allocations: 5.458 MB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/1.046, allocations: 7.281 kB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01108/1.057, allocations: 6.586 MB / 0.7189 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/1.059, allocations: 0.7186 MB / 0.7196 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00052/1.059, allocations: 61.44 kB / 0.7197 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/1.061, allocations: 148.2 kB / 0.7198 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004361/1.061, allocations: 207.7 kB / 0.72 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/1.062, allocations: 88.8 kB / 0.7201 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002841/1.065, allocations: 2.018 MB / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.7e-07/1.065, allocations: 3.969 kB / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004385/1.069, allocations: 1.168 MB / 0.7232 GB, free: 170.7 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.008673/1.078, allocations: 7.268 MB / 0.7303 GB, free: 167.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01568/1.093, allocations: 8.299 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.093, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003456/1.097, allocations: 2.259 MB / 0.7406 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/1.101, allocations: 0.6596 MB / 0.7413 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0579/1.159, allocations: 44.5 MB / 0.7847 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004786/1.164, allocations: 4.156 MB / 0.7888 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003753/1.167, allocations: 1.323 MB / 0.7901 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/1.17, allocations: 2.245 MB / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/1.17, allocations: 0 / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.122/1.292, allocations: 90.03 MB / 0.8802 GB, free: 19.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/12.43, allocations: 14.52 kB / 0.8802 GB, free: 19.26 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4_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_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)