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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008172/0.0008172, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.369/1.369, allocations: 223.3 MB / 239 MB, free: 5.613 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.001168/0.001168, allocations: 176.5 kB / 290.3 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03399/0.03399, allocations: 8.791 MB / 350.2 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.000354, allocations: 12.28 kB / 413.3 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08508/0.08545, allocations: 52.56 MB / 465.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02118/0.1067, allocations: 22.2 MB / 488 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.1212, allocations: 7.39 MB / 495.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005309/0.1265, allocations: 155.6 kB / 495.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004053/0.1306, allocations: 1.236 MB / 496.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006456/0.1371, allocations: 2.256 MB / 499.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003204/0.1403, allocations: 1.034 MB / 0.4884 GB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01072/0.1511, allocations: 8.47 MB / 0.4967 GB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02356/0.1746, allocations: 11.1 MB / 0.5075 GB, free: 7.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005747/0.1804, allocations: 2.768 MB / 0.5102 GB, free: 4.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006024/0.1865, allocations: 3.218 MB / 0.5133 GB, free: 1.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001728/0.1882, allocations: 432 kB / 0.5138 GB, free: 0.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003321/0.1916, allocations: 0.7691 MB / 0.5145 GB, free: 192 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002079/0.1937, allocations: 1.347 MB / 0.5158 GB, free: 14.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002678/0.1964, allocations: 1.389 MB / 0.5172 GB, free: 13.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.2093, allocations: 12.13 MB / 0.529 GB, free: 1.277 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.2093, allocations: 0 / 0.529 GB, free: 1.277 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.2094, allocations: 0 / 0.529 GB, free: 1.277 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004217/0.2098, allocations: 0 / 0.529 GB, free: 1.277 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.2094/0.4192, allocations: 7.453 MB / 0.5363 GB, free: 59.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4193, allocations: 10.39 kB / 0.5363 GB, free: 59.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006564/0.4259, allocations: 1.048 MB / 0.5373 GB, free: 59.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02528/0.4512, allocations: 4.398 MB / 0.5416 GB, free: 58.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.4614, allocations: 4.472 MB / 0.546 GB, free: 57.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006175/0.462, allocations: 491.1 kB / 0.5465 GB, free: 57.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/0.4645, allocations: 0.6306 MB / 0.5471 GB, free: 57.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02807/0.4926, allocations: 10.31 MB / 0.5571 GB, free: 51.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003116/0.493, allocations: 15.78 kB / 0.5572 GB, free: 51.58 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002281/0.4953, allocations: 272.8 kB / 0.5574 GB, free: 51.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003797/0.4957, allocations: 415.5 kB / 0.5578 GB, free: 51.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0194/0.5151, allocations: 9.808 MB / 0.5674 GB, free: 41.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04943/0.5645, allocations: 35.75 MB / 0.6023 GB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01688/0.5815, allocations: 20.63 MB / 0.6225 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004122/0.5856, allocations: 2.309 MB / 0.6247 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004384/0.5861, allocations: 223.6 kB / 0.6249 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.56e-05/0.5862, allocations: 68.84 kB / 0.625 GB, free: 10.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=295): time 5.911e-06/0.5862, allocations: 4 kB / 0.625 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=301): time 0.0267/0.6129, allocations: 11.58 MB / 0.6363 GB, free: 15.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.613, allocations: 85.72 kB / 0.6364 GB, free: 15.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006433/0.6195, allocations: 3.005 MB / 0.6393 GB, free: 12.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004658/0.62, allocations: 69.7 kB / 0.6394 GB, free: 12.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002166/0.6222, allocations: 2.871 MB / 0.6422 GB, free: 9.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/0.6234, allocations: 1.031 MB / 0.6432 GB, free: 8.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005377/0.624, allocations: 92 kB / 0.6433 GB, free: 8.047 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0004722/0.6245, allocations: 496.1 kB / 0.6438 GB, free: 7.555 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003564/0.628, allocations: 2.008 MB / 0.6457 GB, free: 5.539 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004785/0.6328, allocations: 3.709 MB / 0.6493 GB, free: 1.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00476/0.6376, allocations: 2.819 MB / 0.6521 GB, free: 14.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.719e-05/0.6377, allocations: 16 kB / 0.6521 GB, free: 14.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01289/0.6506, allocations: 6.587 MB / 0.6585 GB, free: 7.566 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.03e-05/0.6507, allocations: 33.72 kB / 0.6586 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.6509, allocations: 52 kB / 0.6586 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001831/0.6527, allocations: 0.6807 MB / 0.6593 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/0.6567, allocations: 1.061 MB / 0.6603 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008318/0.6651, allocations: 5.805 MB / 0.666 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003913/0.669, allocations: 275.5 kB / 0.6663 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009892/0.67, allocations: 232 kB / 0.6665 GB, free: 15.31 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005322/0.6753, allocations: 2.315 MB / 0.6687 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.6764, allocations: 320 kB / 0.669 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009203/0.6856, allocations: 4.617 MB / 0.6736 GB, free: 7.992 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.7e-05/0.6857, allocations: 32 kB / 0.6736 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/0.6857, allocations: 8 kB / 0.6736 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.153e-05/0.6858, allocations: 15.94 kB / 0.6736 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/0.7083, allocations: 11.24 MB / 0.6846 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/0.7084, allocations: 7.938 kB / 0.6846 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/0.7106, allocations: 0.5389 MB / 0.6851 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.7122, allocations: 0.5618 MB / 0.6857 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002858/0.7125, allocations: 63.98 kB / 0.6857 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00749/0.72, allocations: 5.039 MB / 0.6907 GB, free: 6.152 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.72, allocations: 4.312 kB / 0.6907 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/0.7312, allocations: 6.55 MB / 0.6971 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002277/0.7335, allocations: 0.7506 MB / 0.6978 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/0.7346, allocations: 63.95 kB / 0.6978 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.7367, allocations: 151.9 kB / 0.698 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/0.7372, allocations: 202 kB / 0.6982 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002207/0.7374, allocations: 87.98 kB / 0.6983 GB, free: 14.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003852/0.7412, allocations: 1.997 MB / 0.7002 GB, free: 12.16 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7413, allocations: 4 kB / 0.7002 GB, free: 12.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005562/0.7468, allocations: 1.167 MB / 0.7014 GB, free: 10.99 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01138/0.7582, allocations: 7.238 MB / 0.7084 GB, free: 3.582 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1892/0.9474, allocations: 4.991 MB / 0.7133 GB, free: 160.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.9475, allocations: 0.6875 kB / 0.7133 GB, free: 160.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005688/0.9532, allocations: 2.261 MB / 0.7155 GB, free: 160 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005674/0.9589, allocations: 0.6223 MB / 0.7161 GB, free: 160 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09467/1.054, allocations: 32.13 MB / 0.7475 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00689/1.061, allocations: 4.15 MB / 0.7516 GB, free: 143.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006527/1.067, allocations: 1.329 MB / 0.7528 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004824/1.072, allocations: 2.245 MB / 0.755 GB, free: 140.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.974e-06/1.072, allocations: 0 / 0.755 GB, free: 140.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1502/1.222, allocations: 85.86 MB / 0.8389 GB, free: 54.6 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001282/1.222, allocations: 206.3 kB / 0.8391 GB, free: 54.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.612/4.835, allocations: 3.938 kB / 0.8391 GB, free: 54.35 MB / 478.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) Environment - environmentSimulation: