Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.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_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",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.001118/0.001118, 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.355/1.355, allocations: 222.9 MB / 239.3 MB, free: 4.621 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.001402/0.001402, allocations: 180.1 kB / 289.6 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03557/0.03557, allocations: 8.795 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 80.91 kB / 411.2 MB, free: 42.2 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08615, allocations: 51.57 MB / 462.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02572/0.1119, allocations: 25.41 MB / 488.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.1273, allocations: 8.006 MB / 496.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004599/0.132, allocations: 179.5 kB / 496.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.014/0.146, allocations: 6.111 MB / 0.4907 GB, free: 6.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009222/0.1552, allocations: 2.738 MB / 0.4934 GB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005224/0.1605, allocations: 1.621 MB / 0.4949 GB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.1706, allocations: 7.223 MB / 0.502 GB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02049/0.1911, allocations: 13.35 MB / 0.515 GB, free: 13.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00601/0.1971, allocations: 3.724 MB / 0.5187 GB, free: 9.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006559/0.2037, allocations: 4.247 MB / 0.5228 GB, free: 5.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003337/0.2071, allocations: 1.07 MB / 0.5239 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005073/0.2122, allocations: 1.445 MB / 0.5253 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003643/0.2159, allocations: 2.147 MB / 0.5274 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2112/0.4271, allocations: 4.105 MB / 0.5314 GB, free: 23.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01734/0.4445, allocations: 14.37 MB / 0.5454 GB, free: 21.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.378e-06/0.4446, allocations: 1.094 kB / 0.5454 GB, free: 21.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4446, allocations: 0 / 0.5454 GB, free: 21.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000447/0.4451, allocations: 0 / 0.5454 GB, free: 21.92 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.03439/0.4795, allocations: 8.809 MB / 0.554 GB, free: 18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.4795, allocations: 9.188 kB / 0.554 GB, free: 18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004657/0.4842, allocations: 1.041 MB / 0.555 GB, free: 17.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02621/0.5104, allocations: 4.387 MB / 0.5593 GB, free: 16.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.5215, allocations: 4.502 MB / 0.5637 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004876/0.522, allocations: 492.5 kB / 0.5642 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003643/0.5256, allocations: 0.639 MB / 0.5648 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/0.5519, allocations: 10.36 MB / 0.5749 GB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002399/0.5522, allocations: 11.34 kB / 0.5749 GB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/0.5541, allocations: 266.8 kB / 0.5752 GB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000351/0.5545, allocations: 411.9 kB / 0.5756 GB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02346/0.5779, allocations: 9.866 MB / 0.5852 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0696/0.6476, allocations: 35.7 MB / 0.6201 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02059/0.6682, allocations: 20.65 MB / 0.6403 GB, free: 5.406 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004477/0.6728, allocations: 2.304 MB / 0.6425 GB, free: 3.098 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004385/0.6732, allocations: 232.1 kB / 0.6427 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/0.6733, allocations: 56.89 kB / 0.6428 GB, free: 2.777 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 6.041e-06/0.6733, allocations: 0 / 0.6428 GB, free: 2.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02517/0.6985, allocations: 10.87 MB / 0.6534 GB, free: 7.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.854e-05/0.6986, allocations: 85.78 kB / 0.6535 GB, free: 7.695 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005514/0.7041, allocations: 3.017 MB / 0.6564 GB, free: 4.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006921/0.7049, allocations: 77.7 kB / 0.6565 GB, free: 4.578 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.7074, allocations: 2.864 MB / 0.6593 GB, free: 1.695 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001691/0.7091, allocations: 1.037 MB / 0.6603 GB, free: 0.668 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001813/0.711, allocations: 0.9016 MB / 0.6612 GB, free: 15.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.7111, allocations: 305.1 kB / 0.6615 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003409/0.7145, allocations: 2.027 MB / 0.6635 GB, free: 13.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004709/0.7192, allocations: 3.725 MB / 0.6671 GB, free: 8.934 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008782/0.728, allocations: 6.044 MB / 0.673 GB, free: 2.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-05/0.7281, allocations: 20 kB / 0.673 GB, free: 2.301 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01276/0.7409, allocations: 6.631 MB / 0.6795 GB, free: 11.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.741, allocations: 30.03 kB / 0.6795 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.901e-05/0.7411, allocations: 56 kB / 0.6796 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/0.7432, allocations: 0.6796 MB / 0.6802 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004293/0.7475, allocations: 1.076 MB / 0.6813 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009084/0.7566, allocations: 6.22 MB / 0.6874 GB, free: 3.891 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004544/0.7612, allocations: 283.5 kB / 0.6876 GB, free: 3.613 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/0.7623, allocations: 228 kB / 0.6879 GB, free: 3.391 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.004732/0.7671, allocations: 2.314 MB / 0.6901 GB, free: 1.141 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001003/0.7681, allocations: 316.1 kB / 0.6904 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008395/0.7765, allocations: 4.632 MB / 0.6949 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-05/0.7765, allocations: 35.94 kB / 0.695 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.7766, allocations: 8 kB / 0.695 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.392e-05/0.7766, allocations: 15.94 kB / 0.695 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02269/0.7993, allocations: 11.27 MB / 0.706 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/0.7994, allocations: 8 kB / 0.706 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/0.8015, allocations: 0.5253 MB / 0.7065 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1917/0.9932, allocations: 0.5731 MB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000597/0.9939, allocations: 70.22 kB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00689/1.001, allocations: 5.45 MB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/1.001, allocations: 6.469 kB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/1.014, allocations: 6.582 MB / 0.7189 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/1.016, allocations: 0.7258 MB / 0.7196 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006478/1.017, allocations: 57.78 kB / 0.7197 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.019, allocations: 149.3 kB / 0.7198 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004347/1.019, allocations: 210 kB / 0.72 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/1.019, allocations: 93.52 kB / 0.7201 GB, free: 171.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003157/1.023, allocations: 2.013 MB / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.023, allocations: 0 / 0.7221 GB, free: 170.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004797/1.027, allocations: 1.177 MB / 0.7232 GB, free: 170.6 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.009171/1.037, allocations: 7.262 MB / 0.7303 GB, free: 167.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01668/1.053, allocations: 8.294 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/1.053, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003771/1.057, allocations: 2.265 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.003824/1.061, allocations: 0.6474 MB / 0.7413 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05754/1.119, allocations: 44.51 MB / 0.7847 GB, free: 116.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003438/1.122, allocations: 4.157 MB / 0.7888 GB, free: 112.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003665/1.126, allocations: 1.327 MB / 0.7901 GB, free: 111.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003035/1.129, allocations: 2.245 MB / 0.7923 GB, free: 109.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/1.129, allocations: 4 kB / 0.7923 GB, free: 109.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1243/1.253, allocations: 90.03 MB / 0.8802 GB, free: 19.35 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/12.48, allocations: 10.58 kB / 0.8802 GB, free: 19.34 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3_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_Slip3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe 2>&1)