Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.001091/0.001091, allocations: 109.4 kB / 15.69 MB, free: 128 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.366/1.366, allocations: 222.9 MB / 239.3 MB, free: 4.586 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.001371/0.001371, allocations: 191.7 kB / 289.6 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03525/0.03525, allocations: 8.793 MB / 348.6 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 80.06 kB / 411.3 MB, free: 41.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.09545, allocations: 51.56 MB / 462.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02642/0.1219, allocations: 25.41 MB / 488.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01771/0.1397, allocations: 8.01 MB / 496.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0051/0.1448, allocations: 175.5 kB / 496.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01452/0.1594, allocations: 6.118 MB / 0.4908 GB, free: 6.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01011/0.1695, allocations: 2.739 MB / 0.4935 GB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005516/0.175, allocations: 1.63 MB / 0.4951 GB, free: 1.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.1851, allocations: 7.273 MB / 0.5022 GB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02/0.2051, allocations: 13.31 MB / 0.5152 GB, free: 13.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006027/0.2112, allocations: 3.732 MB / 0.5188 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006952/0.2182, allocations: 4.216 MB / 0.523 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003203/0.2214, allocations: 1.074 MB / 0.524 GB, free: 4.137 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005872/0.2273, allocations: 1.437 MB / 0.5254 GB, free: 2.699 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003351/0.2307, allocations: 2.139 MB / 0.5275 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2204/0.4511, allocations: 4.107 MB / 0.5315 GB, free: 23.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01679/0.4679, allocations: 14.44 MB / 0.5456 GB, free: 21.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.468, allocations: 0.7812 kB / 0.5456 GB, free: 21.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.468, allocations: 2.031 kB / 0.5456 GB, free: 21.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004983/0.4685, allocations: 0 / 0.5456 GB, free: 21.97 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.03074/0.4993, allocations: 8.782 MB / 0.5542 GB, free: 18.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4993, allocations: 9.094 kB / 0.5542 GB, free: 18.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004139/0.5035, allocations: 1.038 MB / 0.5552 GB, free: 17.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02496/0.5285, allocations: 4.41 MB / 0.5595 GB, free: 16.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/0.5404, allocations: 4.611 MB / 0.564 GB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004808/0.5409, allocations: 490.2 kB / 0.5645 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00305/0.544, allocations: 0.6273 MB / 0.5651 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02892/0.5729, allocations: 10.36 MB / 0.5752 GB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000307/0.5733, allocations: 7.781 kB / 0.5752 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002718/0.576, allocations: 262.9 kB / 0.5755 GB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004011/0.5764, allocations: 419.1 kB / 0.5759 GB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02092/0.5973, allocations: 9.874 MB / 0.5855 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07095/0.6683, allocations: 35.32 MB / 0.62 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02122/0.6896, allocations: 20.66 MB / 0.6402 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004944/0.6946, allocations: 2.3 MB / 0.6424 GB, free: 3.199 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005435/0.6952, allocations: 229.3 kB / 0.6427 GB, free: 2.949 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.24e-05/0.6953, allocations: 68.83 kB / 0.6427 GB, free: 2.871 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 9.808e-06/0.6953, allocations: 7.938 kB / 0.6427 GB, free: 2.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02791/0.7233, allocations: 10.87 MB / 0.6533 GB, free: 7.883 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.7234, allocations: 81.78 kB / 0.6534 GB, free: 7.789 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006937/0.7303, allocations: 3.021 MB / 0.6564 GB, free: 4.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007597/0.7311, allocations: 73.7 kB / 0.6564 GB, free: 4.672 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/0.7336, allocations: 2.866 MB / 0.6592 GB, free: 1.789 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001664/0.7353, allocations: 1.03 MB / 0.6602 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003043/0.7383, allocations: 0.9094 MB / 0.6611 GB, free: 15.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.7385, allocations: 305.1 kB / 0.6614 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004094/0.7426, allocations: 2.024 MB / 0.6634 GB, free: 13.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00569/0.7483, allocations: 3.724 MB / 0.667 GB, free: 9.027 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009227/0.7576, allocations: 6.053 MB / 0.6729 GB, free: 2.406 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.87e-05/0.7577, allocations: 16 kB / 0.673 GB, free: 2.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01434/0.772, allocations: 6.626 MB / 0.6794 GB, free: 12.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.86e-05/0.7722, allocations: 31.98 kB / 0.6795 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.7723, allocations: 56 kB / 0.6795 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002069/0.7744, allocations: 0.6738 MB / 0.6802 GB, free: 11.31 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00464/0.779, allocations: 1.07 MB / 0.6812 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009714/0.7888, allocations: 6.219 MB / 0.6873 GB, free: 4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/0.7936, allocations: 279.5 kB / 0.6876 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/0.7947, allocations: 232 kB / 0.6878 GB, free: 3.5 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.005843/0.8006, allocations: 2.308 MB / 0.69 GB, free: 1.254 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/0.8017, allocations: 320.1 kB / 0.6903 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/0.8118, allocations: 4.631 MB / 0.6949 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.381e-05/0.8118, allocations: 32 kB / 0.6949 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/0.8119, allocations: 8 kB / 0.6949 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.237e-05/0.8119, allocations: 15.94 kB / 0.6949 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02834/0.8403, allocations: 11.09 MB / 0.7057 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.623e-05/0.8404, allocations: 4 kB / 0.7058 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002683/0.8431, allocations: 0.5294 MB / 0.7063 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.8449, allocations: 0.5685 MB / 0.7068 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2157/1.061, allocations: 65.2 kB / 0.7069 GB, free: 174.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007043/1.068, allocations: 5.447 MB / 0.7122 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.068, allocations: 10.12 kB / 0.7122 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/1.08, allocations: 6.587 MB / 0.7186 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003114/1.083, allocations: 0.7263 MB / 0.7194 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/1.084, allocations: 59.58 kB / 0.7194 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002342/1.087, allocations: 150 kB / 0.7196 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006591/1.087, allocations: 206.3 kB / 0.7198 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002284/1.088, allocations: 94.83 kB / 0.7198 GB, free: 172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003486/1.091, allocations: 2.019 MB / 0.7218 GB, free: 171.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.02e-07/1.091, allocations: 0 / 0.7218 GB, free: 171.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005688/1.097, allocations: 1.167 MB / 0.723 GB, free: 171.1 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.0106/1.108, allocations: 7.262 MB / 0.73 GB, free: 167.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00874/1.116, allocations: 5.049 MB / 0.735 GB, free: 165.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.116, allocations: 3.969 kB / 0.735 GB, free: 165.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004219/1.121, allocations: 2.263 MB / 0.7372 GB, free: 165 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00468/1.125, allocations: 0.6453 MB / 0.7378 GB, free: 164.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06654/1.192, allocations: 38.87 MB / 0.7758 GB, free: 128.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007005/1.199, allocations: 4.148 MB / 0.7798 GB, free: 124.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004266/1.203, allocations: 1.324 MB / 0.7811 GB, free: 122.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004191/1.207, allocations: 2.249 MB / 0.7833 GB, free: 120.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.703e-06/1.208, allocations: 0 / 0.7833 GB, free: 120.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1259/1.333, allocations: 85.8 MB / 0.8671 GB, free: 35.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.04/18.37, allocations: 5.438 kB / 0.8671 GB, free: 35.13 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)