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.001011/0.001011, 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.286/1.286, allocations: 222.9 MB / 238.9 MB, free: 4.77 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.001376/0.001376, allocations: 196.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03289/0.03289, allocations: 8.794 MB / 348.1 MB, free: 4.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 75.7 kB / 410.5 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07873/0.0801, allocations: 51.57 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02276/0.1029, allocations: 24.99 MB / 487.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.1165, allocations: 7.944 MB / 495 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003646/0.1201, allocations: 171.4 kB / 495.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.1322, allocations: 5.767 MB / 0.4892 GB, free: 7.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006584/0.1388, allocations: 2.515 MB / 0.4917 GB, free: 5.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00351/0.1424, allocations: 1.525 MB / 0.4932 GB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007364/0.1497, allocations: 7.358 MB / 0.5003 GB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01392/0.1637, allocations: 10.95 MB / 0.511 GB, free: 1.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00422/0.1679, allocations: 3.236 MB / 0.5142 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005103/0.173, allocations: 4.044 MB / 0.5181 GB, free: 9.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001677/0.1747, allocations: 0.6953 MB / 0.5188 GB, free: 9.262 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003086/0.1778, allocations: 1.066 MB / 0.5199 GB, free: 8.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001828/0.1797, allocations: 1.76 MB / 0.5216 GB, free: 6.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004251/0.1839, allocations: 3.73 MB / 0.5252 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1697/0.3536, allocations: 14.1 MB / 0.539 GB, free: 27.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3537, allocations: 2.094 kB / 0.539 GB, free: 27.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3537, allocations: 0 / 0.539 GB, free: 27.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003022/0.354, allocations: 2.969 kB / 0.539 GB, free: 27.13 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.02259/0.3766, allocations: 8.8 MB / 0.5476 GB, free: 23.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3766, allocations: 9.281 kB / 0.5476 GB, free: 23.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002878/0.3795, allocations: 1.042 MB / 0.5486 GB, free: 23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02427/0.4038, allocations: 4.384 MB / 0.5529 GB, free: 21.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008485/0.4123, allocations: 4.512 MB / 0.5573 GB, free: 20.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/0.4126, allocations: 493.9 kB / 0.5578 GB, free: 20 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/0.4145, allocations: 0.626 MB / 0.5584 GB, free: 20 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01984/0.4344, allocations: 10.36 MB / 0.5685 GB, free: 16.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000152/0.4346, allocations: 12.72 kB / 0.5685 GB, free: 16.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007188/0.4353, allocations: 269.2 kB / 0.5688 GB, free: 16.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003049/0.4356, allocations: 412 kB / 0.5692 GB, free: 16.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01422/0.4498, allocations: 9.871 MB / 0.5788 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04545/0.4953, allocations: 35.69 MB / 0.6137 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/0.5119, allocations: 20.66 MB / 0.6338 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/0.515, allocations: 2.304 MB / 0.6361 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002673/0.5153, allocations: 229.7 kB / 0.6363 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.5153, allocations: 68.08 kB / 0.6364 GB, free: 10.94 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.779e-06/0.5153, allocations: 0 / 0.6364 GB, free: 10.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01969/0.535, allocations: 10.87 MB / 0.647 GB, free: 15.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.5351, allocations: 81.78 kB / 0.6471 GB, free: 15.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.5399, allocations: 3.021 MB / 0.65 GB, free: 12.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001717/0.5401, allocations: 77.7 kB / 0.6501 GB, free: 12.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001906/0.542, allocations: 2.864 MB / 0.6529 GB, free: 9.859 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008485/0.5428, allocations: 1.032 MB / 0.6539 GB, free: 8.836 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.5443, allocations: 0.908 MB / 0.6548 GB, free: 7.918 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.5444, allocations: 312.2 kB / 0.6551 GB, free: 7.613 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003071/0.5474, allocations: 2.02 MB / 0.657 GB, free: 5.586 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004354/0.5518, allocations: 3.727 MB / 0.6607 GB, free: 1.098 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007653/0.5595, allocations: 6.046 MB / 0.6666 GB, free: 10.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.335e-05/0.5596, allocations: 20 kB / 0.6666 GB, free: 10.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01096/0.5705, allocations: 6.62 MB / 0.6731 GB, free: 4.148 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.867e-05/0.5706, allocations: 42.05 kB / 0.6731 GB, free: 4.109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.107e-05/0.5707, allocations: 55.98 kB / 0.6732 GB, free: 4.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001808/0.5725, allocations: 0.6602 MB / 0.6738 GB, free: 3.391 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003521/0.576, allocations: 1.077 MB / 0.6749 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007905/0.5839, allocations: 5.79 MB / 0.6805 GB, free: 12.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00302/0.587, allocations: 283.5 kB / 0.6808 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004491/0.5874, allocations: 224 kB / 0.681 GB, free: 12.02 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.003675/0.5911, allocations: 2.325 MB / 0.6833 GB, free: 9.754 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007237/0.5918, allocations: 320 kB / 0.6836 GB, free: 9.438 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007573/0.5994, allocations: 4.627 MB / 0.6881 GB, free: 4.777 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/0.5995, allocations: 32 kB / 0.6881 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/0.5995, allocations: 11.59 kB / 0.6881 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-05/0.5995, allocations: 17.92 kB / 0.6881 GB, free: 4.723 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.6185, allocations: 11.26 MB / 0.6991 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.6185, allocations: 4 kB / 0.6991 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00206/0.6206, allocations: 0.5373 MB / 0.6997 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001607/0.6222, allocations: 0.5686 MB / 0.7002 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/0.6225, allocations: 71.98 kB / 0.7003 GB, free: 8.203 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006719/0.6292, allocations: 5.023 MB / 0.7052 GB, free: 3.066 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/0.6292, allocations: 11 kB / 0.7052 GB, free: 3.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1975/0.8267, allocations: 6.58 MB / 0.7116 GB, free: 175.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/0.8282, allocations: 0.7245 MB / 0.7123 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004217/0.8286, allocations: 60.55 kB / 0.7124 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.8301, allocations: 149.6 kB / 0.7125 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003985/0.8305, allocations: 207.3 kB / 0.7127 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/0.8307, allocations: 88.77 kB / 0.7128 GB, free: 175.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002668/0.8334, allocations: 2.018 MB / 0.7148 GB, free: 175.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8334, allocations: 1.469 kB / 0.7148 GB, free: 175.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003537/0.8369, allocations: 1.173 MB / 0.7159 GB, free: 175 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.008522/0.8454, allocations: 7.262 MB / 0.723 GB, free: 171.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006462/0.8519, allocations: 5.026 MB / 0.7279 GB, free: 169.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.8519, allocations: 0 / 0.7279 GB, free: 169.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002937/0.8549, allocations: 2.26 MB / 0.7302 GB, free: 168.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/0.8581, allocations: 0.6195 MB / 0.7308 GB, free: 168.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06301/0.9211, allocations: 47.11 MB / 0.7768 GB, free: 126.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003071/0.9242, allocations: 4.155 MB / 0.7808 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003492/0.9277, allocations: 1.33 MB / 0.7821 GB, free: 120.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002415/0.9302, allocations: 2.249 MB / 0.7843 GB, free: 118.5 MB / 494.1 MB Notification: Performance of SimCode: time 8.82e-07/0.9302, allocations: 0 / 0.7843 GB, free: 118.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09901/1.029, allocations: 88.15 MB / 0.8704 GB, free: 30.62 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001286/1.029, allocations: 221.8 kB / 0.8706 GB, free: 30.36 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.442/4.472, allocations: 0 / 0.8706 GB, free: 30.36 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)