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.001449/0.001448, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.299/1.299, allocations: 222.9 MB / 239 MB, free: 4.742 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.001307/0.001307, allocations: 188.4 kB / 289.3 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03311/0.03311, allocations: 8.799 MB / 348.2 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 74.7 kB / 410.7 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08239/0.08384, allocations: 51.58 MB / 462.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02476/0.1086, allocations: 24.99 MB / 487.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.1268, allocations: 7.897 MB / 495.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006013/0.1329, allocations: 171.5 kB / 495.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01382/0.1468, allocations: 5.775 MB / 0.4893 GB, free: 7.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009441/0.1562, allocations: 2.493 MB / 0.4918 GB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004485/0.1608, allocations: 1.498 MB / 0.4932 GB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00906/0.1698, allocations: 7.256 MB / 0.5003 GB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02349/0.1934, allocations: 15.29 MB / 0.5153 GB, free: 13.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006562/0.2, allocations: 3.755 MB / 0.5189 GB, free: 9.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007294/0.2073, allocations: 4.29 MB / 0.5231 GB, free: 4.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003469/0.2108, allocations: 1.074 MB / 0.5242 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00495/0.2158, allocations: 1.449 MB / 0.5256 GB, free: 2.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003761/0.2196, allocations: 2.143 MB / 0.5277 GB, free: 272 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1942/0.4138, allocations: 4.104 MB / 0.5317 GB, free: 24.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01325/0.427, allocations: 14.36 MB / 0.5457 GB, free: 22.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.4271, allocations: 0 / 0.5457 GB, free: 22.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4271, allocations: 0 / 0.5457 GB, free: 22.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004728/0.4276, allocations: 1.938 kB / 0.5457 GB, free: 22.96 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.02867/0.4562, allocations: 8.805 MB / 0.5543 GB, free: 19.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.4563, allocations: 9.688 kB / 0.5543 GB, free: 19.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004217/0.4605, allocations: 1.051 MB / 0.5553 GB, free: 18.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02534/0.4859, allocations: 4.38 MB / 0.5596 GB, free: 17.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.497, allocations: 4.507 MB / 0.564 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004607/0.4975, allocations: 489.2 kB / 0.5645 GB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003106/0.5006, allocations: 0.6281 MB / 0.5651 GB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/0.5273, allocations: 10.36 MB / 0.5752 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003316/0.5277, allocations: 11.72 kB / 0.5752 GB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/0.5305, allocations: 265.5 kB / 0.5755 GB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004151/0.5309, allocations: 418.6 kB / 0.5759 GB, free: 9.648 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02113/0.552, allocations: 9.867 MB / 0.5855 GB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06615/0.6182, allocations: 35.69 MB / 0.6204 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01917/0.6374, allocations: 20.66 MB / 0.6406 GB, free: 6.215 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004219/0.6417, allocations: 2.312 MB / 0.6428 GB, free: 3.902 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/0.6422, allocations: 224.4 kB / 0.643 GB, free: 3.656 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.973e-05/0.6423, allocations: 64.88 kB / 0.6431 GB, free: 3.582 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 6.422e-06/0.6423, allocations: 4 kB / 0.6431 GB, free: 3.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02446/0.6668, allocations: 10.87 MB / 0.6537 GB, free: 8.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.6669, allocations: 85.25 kB / 0.6538 GB, free: 8.504 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/0.6729, allocations: 3.021 MB / 0.6567 GB, free: 5.465 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004469/0.6734, allocations: 69.7 kB / 0.6568 GB, free: 5.391 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001988/0.6754, allocations: 2.871 MB / 0.6596 GB, free: 2.504 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/0.6766, allocations: 1.036 MB / 0.6606 GB, free: 1.477 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002361/0.6789, allocations: 0.9016 MB / 0.6615 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.505e-05/0.679, allocations: 305.1 kB / 0.6618 GB, free: 268 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/0.6824, allocations: 2.027 MB / 0.6638 GB, free: 14.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004521/0.687, allocations: 3.73 MB / 0.6674 GB, free: 9.738 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008118/0.6951, allocations: 6.043 MB / 0.6733 GB, free: 3.121 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-05/0.6952, allocations: 16 kB / 0.6733 GB, free: 3.105 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01285/0.708, allocations: 6.617 MB / 0.6798 GB, free: 12.79 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.26e-05/0.7082, allocations: 28 kB / 0.6798 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.7083, allocations: 60.22 kB / 0.6799 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/0.7104, allocations: 0.6792 MB / 0.6805 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/0.7146, allocations: 1.077 MB / 0.6816 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008916/0.7235, allocations: 6.226 MB / 0.6877 GB, free: 4.699 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/0.7278, allocations: 279.5 kB / 0.6879 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/0.7289, allocations: 231.9 kB / 0.6882 GB, free: 4.199 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.005479/0.7344, allocations: 2.311 MB / 0.6904 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/0.7357, allocations: 320 kB / 0.6907 GB, free: 1.637 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/0.7458, allocations: 4.635 MB / 0.6952 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.881e-05/0.7459, allocations: 32 kB / 0.6953 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.183e-05/0.7459, allocations: 7.938 kB / 0.6953 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-05/0.746, allocations: 19.94 kB / 0.6953 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02343/0.7694, allocations: 11.26 MB / 0.7063 GB, free: 1.535 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.7694, allocations: 4 kB / 0.7063 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002194/0.7716, allocations: 0.5314 MB / 0.7068 GB, free: 1.027 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/0.7733, allocations: 0.5724 MB / 0.7074 GB, free: 468 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003022/0.7736, allocations: 67.98 kB / 0.7074 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2017/0.9753, allocations: 5.462 MB / 0.7128 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.9754, allocations: 8.156 kB / 0.7128 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.9854, allocations: 6.573 MB / 0.7192 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/0.9873, allocations: 0.7225 MB / 0.7199 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005569/0.9879, allocations: 67 kB / 0.72 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.9895, allocations: 146.6 kB / 0.7201 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005084/0.99, allocations: 207.5 kB / 0.7203 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.9902, allocations: 88.56 kB / 0.7204 GB, free: 172.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002613/0.9928, allocations: 2.018 MB / 0.7224 GB, free: 171.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9928, allocations: 0 / 0.7224 GB, free: 171.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003902/0.9967, allocations: 1.175 MB / 0.7235 GB, free: 171.3 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.008148/1.005, allocations: 7.26 MB / 0.7306 GB, free: 168 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01606/1.021, allocations: 8.291 MB / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.021, allocations: 4 kB / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003365/1.024, allocations: 2.264 MB / 0.7409 GB, free: 163.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004056/1.028, allocations: 0.6563 MB / 0.7415 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0753/1.104, allocations: 47.12 MB / 0.7876 GB, free: 114.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002914/1.107, allocations: 4.153 MB / 0.7916 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003519/1.11, allocations: 1.323 MB / 0.7929 GB, free: 109.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/1.113, allocations: 2.245 MB / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of SimCode: time 7.91e-07/1.113, allocations: 0 / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7496/1.862, allocations: 89.97 MB / 0.883 GB, free: 17.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001554/1.862, allocations: 214.9 kB / 0.8832 GB, free: 17.25 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.649/5.511, allocations: 0 / 0.8832 GB, free: 17.25 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 & /home/hudson/saved_omc/OMSimulator/install/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)