Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.001521/0.001521, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.471/1.471, allocations: 230.6 MB / 253.4 MB, free: 14.43 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.001597/0.001597, allocations: 207.9 kB / 310 MB, free: 3.117 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.04073/0.04073, allocations: 8.916 MB / 375.3 MB, free: 6.746 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: translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") [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.002364/0.002364, allocations: 87.86 kB / 0.4904 GB, free: 44.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1025, allocations: 55.61 MB / 0.5448 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.0178/0.1203, allocations: 14.14 MB / 0.5586 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.1306, allocations: 4.73 MB / 0.5632 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.1338, allocations: 111.3 kB / 0.5633 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003701/0.1375, allocations: 1.095 MB / 0.5644 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2606/0.3981, allocations: 1.308 MB / 0.5656 GB, free: 10.36 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.002584/0.4006, allocations: 0.9359 MB / 0.5665 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005121/0.4058, allocations: 3.852 MB / 0.5703 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002777/0.4085, allocations: 1.878 MB / 0.5721 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003495/0.412, allocations: 1.838 MB / 0.5739 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004569/0.4166, allocations: 2.14 MB / 0.576 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001514/0.4181, allocations: 499.3 kB / 0.5765 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002724/0.4208, allocations: 0.7113 MB / 0.5772 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.4223, allocations: 1.08 MB / 0.5783 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00395/0.4262, allocations: 2.051 MB / 0.5803 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.4366, allocations: 6.463 MB / 0.5866 GB, free: 5.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4366, allocations: 0 / 0.5866 GB, free: 5.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4366, allocations: 1.094 kB / 0.5866 GB, free: 5.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002117/0.4368, allocations: 0 / 0.5866 GB, free: 5.609 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01394/0.4507, allocations: 4.225 MB / 0.5907 GB, free: 3.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.4508, allocations: 20.11 kB / 0.5907 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004709/0.4555, allocations: 0.7504 MB / 0.5914 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005684/0.4612, allocations: 2.28 MB / 0.5937 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002354/0.4614, allocations: 235 kB / 0.5939 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009997/0.4624, allocations: 322 kB / 0.5942 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009495/0.4719, allocations: 4.172 MB / 0.5983 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.028e-05/0.472, allocations: 5.328 kB / 0.5983 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/0.4723, allocations: 127.1 kB / 0.5984 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001764/0.4725, allocations: 141.1 kB / 0.5985 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007306/0.4798, allocations: 3.511 MB / 0.602 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02354/0.5033, allocations: 12.86 MB / 0.6145 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004195/0.5075, allocations: 2.156 MB / 0.6166 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.5093, allocations: 0.9881 MB / 0.6176 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00554/0.5148, allocations: 2.848 MB / 0.6204 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.5149, allocations: 51.55 kB / 0.6204 GB, free: 12.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=107): time 2.806e-06/0.5149, allocations: 0 / 0.6204 GB, free: 12.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=110): time 0.009882/0.5248, allocations: 4.149 MB / 0.6245 GB, free: 8.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.5248, allocations: 68.06 kB / 0.6245 GB, free: 8.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002697/0.5275, allocations: 1.619 MB / 0.6261 GB, free: 6.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.5276, allocations: 45.7 kB / 0.6262 GB, free: 6.566 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.5289, allocations: 1.471 MB / 0.6276 GB, free: 5.086 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/0.5293, allocations: 418.6 kB / 0.628 GB, free: 4.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004568/0.5298, allocations: 271.5 kB / 0.6283 GB, free: 4.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5299, allocations: 309.1 kB / 0.6286 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009925/0.5309, allocations: 0.5699 MB / 0.6291 GB, free: 3.535 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.5324, allocations: 1.058 MB / 0.6301 GB, free: 2.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.5349, allocations: 1.736 MB / 0.6318 GB, free: 392 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.5349, allocations: 8 kB / 0.6318 GB, free: 384 kB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003712/0.5386, allocations: 1.972 MB / 0.6338 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.5387, allocations: 12 kB / 0.6338 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.5387, allocations: 16.38 kB / 0.6338 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.5391, allocations: 138.4 kB / 0.6339 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.5405, allocations: 364.5 kB / 0.6343 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.5436, allocations: 3.174 MB / 0.6374 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.545, allocations: 67.92 kB / 0.6374 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.5451, allocations: 67.98 kB / 0.6375 GB, free: 10.33 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001992/0.5471, allocations: 0.9657 MB / 0.6385 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000385/0.5475, allocations: 182.8 kB / 0.6386 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.5508, allocations: 1.653 MB / 0.6402 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.5508, allocations: 12 kB / 0.6403 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5508, allocations: 4 kB / 0.6403 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.5508, allocations: 3.984 kB / 0.6403 GB, free: 7.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007498/0.5583, allocations: 4.183 MB / 0.6443 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.5583, allocations: 4 kB / 0.6443 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008347/0.5592, allocations: 179.8 kB / 0.6445 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008493/0.56, allocations: 308.3 kB / 0.6448 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.5601, allocations: 31.98 kB / 0.6448 GB, free: 2.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007972/0.5681, allocations: 7.794 MB / 0.6525 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5681, allocations: 0 / 0.6525 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004519/0.5726, allocations: 2.421 MB / 0.6548 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.5737, allocations: 302.7 kB / 0.6551 GB, free: 7.715 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.574, allocations: 31.98 kB / 0.6551 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007901/0.5748, allocations: 47.97 kB / 0.6552 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.5751, allocations: 96.75 kB / 0.6553 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.199e-05/0.5751, allocations: 32.19 kB / 0.6553 GB, free: 7.512 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001934/0.5771, allocations: 1.115 MB / 0.6564 GB, free: 6.402 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5771, allocations: 3.938 kB / 0.6564 GB, free: 6.398 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002221/0.5793, allocations: 0.5078 MB / 0.6569 GB, free: 5.891 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * 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 (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003736/0.5797, allocations: 154.2 kB / 0.657 GB, free: 5.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.5826, allocations: 1.578 MB / 0.6586 GB, free: 4.121 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5826, allocations: 1.812 kB / 0.6586 GB, free: 4.121 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.5845, allocations: 1.181 MB / 0.6597 GB, free: 2.891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/0.5869, allocations: 0.5175 MB / 0.6602 GB, free: 2.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.5976, allocations: 5.451 MB / 0.6656 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002161/0.5998, allocations: 2.188 MB / 0.6677 GB, free: 10.67 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005917/0.6004, allocations: 139.4 kB / 0.6678 GB, free: 10.54 MB / 462.1 MB Notification: Performance of SimCode: time 1.372e-06/0.6004, allocations: 0 / 0.6678 GB, free: 10.54 MB / 462.1 MB Notification: Performance of Templates: time 0.1146/0.715, allocations: 91.48 MB / 0.7572 GB, free: 15.09 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.613971539074555] Failed to read output from testmodel.py, exit status != 0: 0.7238729670643806 0.740568743 0.300571334 Calling exit ...