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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 253.4 MB, free: 14.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 214.5 kB / 310 MB, free: 3.141 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04123/0.04123, allocations: 8.925 MB / 375.4 MB, free: 6.785 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 79.88 kB / 0.49 GB, free: 44.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08309/0.08551, allocations: 55.62 MB / 0.5443 GB, free: 5.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.2276/0.3131, allocations: 25.63 MB / 0.5694 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.3273, allocations: 8.154 MB / 0.5773 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004797/0.3321, allocations: 205.2 kB / 0.5775 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01355/0.3457, allocations: 6.2 MB / 0.5836 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008859/0.3545, allocations: 2.857 MB / 0.5864 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.3595, allocations: 1.675 MB / 0.588 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009548/0.369, allocations: 7.404 MB / 0.5952 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0168/0.3858, allocations: 9.132 MB / 0.6041 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00739/0.3932, allocations: 3.844 MB / 0.6079 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008249/0.4015, allocations: 4.305 MB / 0.6121 GB, free: 7.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003096/0.4046, allocations: 1.072 MB / 0.6131 GB, free: 7.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00564/0.4102, allocations: 1.468 MB / 0.6146 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003971/0.4142, allocations: 2.157 MB / 0.6167 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008325/0.4225, allocations: 4.113 MB / 0.6207 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02024/0.4428, allocations: 14.5 MB / 0.6349 GB, free: 2.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4428, allocations: 4 kB / 0.6349 GB, free: 2.266 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4428, allocations: 0 / 0.6349 GB, free: 2.266 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003665/0.4431, allocations: 0 / 0.6349 GB, free: 2.266 MB / 414.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.02752/0.4706, allocations: 8.894 MB / 0.6436 GB, free: 9.293 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/0.4707, allocations: 11.98 kB / 0.6436 GB, free: 9.281 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000268/0.471, allocations: 204.9 kB / 0.6438 GB, free: 9.078 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003053/0.474, allocations: 1.045 MB / 0.6448 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02672/0.5007, allocations: 4.419 MB / 0.6491 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.5116, allocations: 4.629 MB / 0.6536 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005305/0.5121, allocations: 485.1 kB / 0.6541 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002238/0.5143, allocations: 0.6327 MB / 0.6547 GB, free: 13.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02274/0.5371, allocations: 10.41 MB / 0.6649 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.5373, allocations: 7.953 kB / 0.6649 GB, free: 3.324 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009783/0.5382, allocations: 268 kB / 0.6651 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004604/0.5387, allocations: 421.7 kB / 0.6655 GB, free: 2.648 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02045/0.5591, allocations: 9.907 MB / 0.6752 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06505/0.6242, allocations: 33.56 MB / 0.708 GB, free: 6.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/0.6399, allocations: 6.809 MB / 0.7146 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003893/0.6438, allocations: 2.129 MB / 0.7167 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003369/0.6441, allocations: 94.23 kB / 0.7168 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/0.6442, allocations: 68.88 kB / 0.7169 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=301): time 4.649e-06/0.6442, allocations: 0 / 0.7169 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=359): time 0.03992/0.6841, allocations: 16.37 MB / 0.7329 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02173/0.7058, allocations: 12.24 MB / 0.7448 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005043/0.7109, allocations: 3.022 MB / 0.7478 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005684/0.7114, allocations: 85.7 kB / 0.7478 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002385/0.7138, allocations: 2.975 MB / 0.7507 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001547/0.7154, allocations: 1.282 MB / 0.752 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/0.7172, allocations: 0.9973 MB / 0.753 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.7173, allocations: 313 kB / 0.7533 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004122/0.7214, allocations: 2.356 MB / 0.7556 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006156/0.7276, allocations: 4.085 MB / 0.7596 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01051/0.7381, allocations: 6.799 MB / 0.7662 GB, free: 9.375 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.953e-05/0.7382, allocations: 16 kB / 0.7662 GB, free: 9.359 MB / 0.545 GB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01605/0.7542, allocations: 7.932 MB / 0.774 GB, free: 1.395 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/0.7543, allocations: 32 kB / 0.774 GB, free: 1.363 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.652e-05/0.7544, allocations: 59.94 kB / 0.774 GB, free: 1.305 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2234/0.9778, allocations: 1.312 MB / 0.7753 GB, free: 166.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/0.9821, allocations: 1.119 MB / 0.7764 GB, free: 166.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01732/0.9994, allocations: 12.67 MB / 0.7888 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/1.004, allocations: 300.7 kB / 0.7891 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008527/1.004, allocations: 251.5 kB / 0.7893 GB, free: 161.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 250 * 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 (584): * Single equations (assignments): 582 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,28,65.6%), (8,28,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004193/1.009, allocations: 2.371 MB / 0.7916 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007988/1.009, allocations: 355.5 kB / 0.792 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/1.021, allocations: 6.141 MB / 0.798 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-05/1.021, allocations: 41.27 kB / 0.798 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.919e-05/1.021, allocations: 6.812 kB / 0.798 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.489e-05/1.021, allocations: 19.05 kB / 0.798 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02857/1.049, allocations: 17.27 MB / 0.8149 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/1.049, allocations: 7.906 kB / 0.8149 GB, free: 150.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/1.052, allocations: 0.5592 MB / 0.8154 GB, free: 150.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003458/1.055, allocations: 1.324 MB / 0.8167 GB, free: 150.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004474/1.056, allocations: 82.5 kB / 0.8168 GB, free: 150.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01593/1.072, allocations: 12.99 MB / 0.8295 GB, free: 142.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0165/1.088, allocations: 11.98 MB / 0.8412 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/1.101, allocations: 8.536 MB / 0.8495 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/1.103, allocations: 0.7631 MB / 0.8503 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007201/1.103, allocations: 71.98 kB / 0.8503 GB, free: 124.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002099/1.106, allocations: 163.8 kB / 0.8505 GB, free: 124.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005428/1.106, allocations: 278.6 kB / 0.8508 GB, free: 124.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/1.106, allocations: 107.9 kB / 0.8509 GB, free: 124 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002639/1.109, allocations: 2.021 MB / 0.8528 GB, free: 121.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.109, allocations: 2.062 kB / 0.8528 GB, free: 121.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005017/1.114, allocations: 1.363 MB / 0.8542 GB, free: 120.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 2 ($STATESET1.x,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 (305): * Single equations (assignments): 303 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,20,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01264/1.127, allocations: 9.236 MB / 0.8632 GB, free: 111.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01039/1.137, allocations: 6.056 MB / 0.8691 GB, free: 105.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/1.137, allocations: 7.938 kB / 0.8691 GB, free: 105.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00649/1.143, allocations: 2.999 MB / 0.872 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004084/1.148, allocations: 0.6774 MB / 0.8727 GB, free: 101.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06415/1.212, allocations: 43.7 MB / 0.9154 GB, free: 55.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00386/1.216, allocations: 4.292 MB / 0.9196 GB, free: 51.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003374/1.219, allocations: 1.367 MB / 0.9209 GB, free: 50.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002997/1.222, allocations: 2.307 MB / 0.9232 GB, free: 47.79 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.222, allocations: 0 / 0.9232 GB, free: 47.79 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3947/1.617, allocations: 110.1 MB / 1.031 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.22/22.83, allocations: 7.25 kB / 1.031 GB, free: 164.4 MB / 0.5606 GB " [Timeout remaining time 637] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 34.63373261294328] Failed to read output from testmodel.py, exit status != 0: 23.0633563909214 23.073578629 22.62832413 Calling exit ...