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.001044/0.001044, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.277/1.277, allocations: 222.9 MB / 238.9 MB, free: 4.773 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.001497/0.001497, allocations: 192.4 kB / 289.1 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03513/0.03513, allocations: 8.79 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 83.39 kB / 410.5 MB, free: 42.44 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0762/0.07783, allocations: 51.55 MB / 462.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02444/0.1023, allocations: 24.99 MB / 487.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.1178, allocations: 7.94 MB / 495 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004379/0.1222, allocations: 163.5 kB / 495.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.1346, allocations: 5.776 MB / 0.4892 GB, free: 7.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.1424, allocations: 2.521 MB / 0.4917 GB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004644/0.1471, allocations: 1.519 MB / 0.4931 GB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.1573, allocations: 7.358 MB / 0.5003 GB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02083/0.1782, allocations: 10.96 MB / 0.511 GB, free: 1.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006549/0.1848, allocations: 3.232 MB / 0.5142 GB, free: 14.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006639/0.1914, allocations: 4.04 MB / 0.5181 GB, free: 9.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002819/0.1943, allocations: 0.6992 MB / 0.5188 GB, free: 9.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004267/0.1986, allocations: 1.062 MB / 0.5198 GB, free: 8.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003145/0.2018, allocations: 1.76 MB / 0.5216 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006864/0.2087, allocations: 3.722 MB / 0.5252 GB, free: 2.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.186/0.3947, allocations: 14.1 MB / 0.539 GB, free: 27.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3948, allocations: 0.75 kB / 0.539 GB, free: 27.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3948, allocations: 0 / 0.539 GB, free: 27.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003864/0.3952, allocations: 1.75 kB / 0.539 GB, free: 27.16 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.02527/0.4204, allocations: 8.803 MB / 0.5476 GB, free: 23.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4205, allocations: 10.53 kB / 0.5476 GB, free: 23.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004175/0.4247, allocations: 1.044 MB / 0.5486 GB, free: 23.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0247/0.4494, allocations: 4.388 MB / 0.5529 GB, free: 21.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008717/0.4582, allocations: 4.506 MB / 0.5573 GB, free: 20.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000378/0.4586, allocations: 492.8 kB / 0.5578 GB, free: 20.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.4605, allocations: 0.6305 MB / 0.5584 GB, free: 20.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02028/0.4808, allocations: 10.36 MB / 0.5685 GB, free: 16.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/0.4811, allocations: 8.344 kB / 0.5685 GB, free: 16.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002312/0.4835, allocations: 268.5 kB / 0.5688 GB, free: 16.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003813/0.4838, allocations: 415.9 kB / 0.5692 GB, free: 16.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01673/0.5006, allocations: 9.86 MB / 0.5788 GB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05482/0.5554, allocations: 35.69 MB / 0.6136 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/0.5732, allocations: 20.66 MB / 0.6338 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003708/0.577, allocations: 2.307 MB / 0.6361 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003617/0.5774, allocations: 221.8 kB / 0.6363 GB, free: 11.1 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.518e-05/0.5774, allocations: 72.62 kB / 0.6363 GB, free: 11.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.009e-06/0.5775, allocations: 0 / 0.6363 GB, free: 11.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02099/0.5985, allocations: 10.88 MB / 0.647 GB, free: 40 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.5985, allocations: 81.78 kB / 0.647 GB, free: 15.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004005/0.6026, allocations: 3.017 MB / 0.65 GB, free: 12.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.6028, allocations: 77.7 kB / 0.6501 GB, free: 12.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001581/0.6044, allocations: 2.865 MB / 0.6529 GB, free: 9.941 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007637/0.6051, allocations: 1.032 MB / 0.6539 GB, free: 8.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/0.6064, allocations: 0.9094 MB / 0.6548 GB, free: 7.996 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.6065, allocations: 301.1 kB / 0.655 GB, free: 7.699 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.6093, allocations: 2.027 MB / 0.657 GB, free: 5.664 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003725/0.613, allocations: 3.725 MB / 0.6607 GB, free: 1.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006926/0.6199, allocations: 6.044 MB / 0.6666 GB, free: 10.56 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.773e-05/0.62, allocations: 16 kB / 0.6666 GB, free: 10.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01014/0.6301, allocations: 6.625 MB / 0.6731 GB, free: 4.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.6302, allocations: 32.22 kB / 0.6731 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-05/0.6303, allocations: 56 kB / 0.6731 GB, free: 4.145 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/0.632, allocations: 0.6703 MB / 0.6738 GB, free: 3.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003432/0.6354, allocations: 1.073 MB / 0.6748 GB, free: 2.473 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0077/0.6432, allocations: 5.79 MB / 0.6805 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/0.6463, allocations: 279.5 kB / 0.6808 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003699/0.6466, allocations: 232 kB / 0.681 GB, free: 12.09 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.003409/0.6501, allocations: 2.315 MB / 0.6832 GB, free: 9.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005899/0.6507, allocations: 328 kB / 0.6836 GB, free: 9.516 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007229/0.6579, allocations: 4.622 MB / 0.6881 GB, free: 4.859 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.6579, allocations: 32 kB / 0.6881 GB, free: 4.828 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.6579, allocations: 7.938 kB / 0.6881 GB, free: 4.82 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/0.658, allocations: 19.94 kB / 0.6881 GB, free: 4.801 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.6739, allocations: 11.26 MB / 0.6991 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.674, allocations: 8.031 kB / 0.6991 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001964/0.6759, allocations: 0.5338 MB / 0.6997 GB, free: 8.918 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.6775, allocations: 0.5606 MB / 0.7002 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.6776, allocations: 74.39 kB / 0.7003 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006409/0.6841, allocations: 5.036 MB / 0.7052 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.6841, allocations: 7.375 kB / 0.7052 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1622/0.8463, allocations: 6.576 MB / 0.7116 GB, free: 175.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002042/0.8484, allocations: 0.7269 MB / 0.7123 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005469/0.849, allocations: 55.25 kB / 0.7124 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/0.8506, allocations: 151.4 kB / 0.7125 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005067/0.8511, allocations: 207.6 kB / 0.7127 GB, free: 175.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/0.8513, allocations: 86.34 kB / 0.7128 GB, free: 175.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.8542, allocations: 2.019 MB / 0.7148 GB, free: 175.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.8542, allocations: 3.281 kB / 0.7148 GB, free: 175.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003947/0.8581, allocations: 1.169 MB / 0.7159 GB, free: 175.2 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.008971/0.8671, allocations: 7.26 MB / 0.723 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00744/0.8746, allocations: 5.028 MB / 0.7279 GB, free: 170 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.8746, allocations: 2.625 kB / 0.7279 GB, free: 170 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003527/0.8782, allocations: 2.264 MB / 0.7301 GB, free: 169 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/0.8815, allocations: 0.6125 MB / 0.7307 GB, free: 168.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07699/0.9585, allocations: 47.11 MB / 0.7767 GB, free: 126.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003883/0.9624, allocations: 4.151 MB / 0.7808 GB, free: 122.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003843/0.9663, allocations: 1.331 MB / 0.7821 GB, free: 120.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002826/0.9691, allocations: 2.245 MB / 0.7843 GB, free: 118.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.133e-06/0.9692, allocations: 0 / 0.7843 GB, free: 118.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/1.077, allocations: 88.17 MB / 0.8704 GB, free: 30.71 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/1.077, allocations: 213.6 kB / 0.8706 GB, free: 30.45 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.563/4.64, allocations: 4.062 kB / 0.8706 GB, free: 30.45 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)