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.00174/0.00174, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.561/1.561, allocations: 230.6 MB / 252.7 MB, free: 8.285 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.001578/0.001578, allocations: 211.5 kB / 309.2 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.05364/0.05364, allocations: 8.919 MB / 374.6 MB, free: 1.891 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.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",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.002664/0.002664, allocations: 80.3 kB / 0.4892 GB, free: 7.316 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3016, allocations: 55.61 MB / 0.5435 GB, free: 26.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01371/0.3153, allocations: 14.16 MB / 0.5573 GB, free: 16.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.3254, allocations: 4.72 MB / 0.562 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003217/0.3287, allocations: 112 kB / 0.5621 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003995/0.3326, allocations: 1.102 MB / 0.5631 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005536/0.3382, allocations: 1.319 MB / 0.5644 GB, free: 11.77 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.003076/0.3413, allocations: 0.9306 MB / 0.5653 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005157/0.3464, allocations: 3.858 MB / 0.5691 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003388/0.3498, allocations: 1.872 MB / 0.5709 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.3532, allocations: 1.834 MB / 0.5727 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004554/0.3577, allocations: 2.136 MB / 0.5748 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001422/0.3591, allocations: 498 kB / 0.5753 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002494/0.3616, allocations: 0.7161 MB / 0.576 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.3627, allocations: 1.077 MB / 0.577 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004687/0.3674, allocations: 2.053 MB / 0.579 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.3781, allocations: 6.464 MB / 0.5854 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.3781, allocations: 0 / 0.5854 GB, free: 15.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3781, allocations: 1.219 kB / 0.5854 GB, free: 15.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002124/0.3783, allocations: 0 / 0.5854 GB, free: 15.72 MB / 398.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.01376/0.3921, allocations: 4.23 MB / 0.5895 GB, free: 12.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3921, allocations: 13.19 kB / 0.5895 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001122/0.3933, allocations: 0.4893 MB / 0.59 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004342/0.3976, allocations: 0.7559 MB / 0.5907 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005993/0.4036, allocations: 2.282 MB / 0.5929 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.4038, allocations: 238.7 kB / 0.5932 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007843/0.4046, allocations: 311.9 kB / 0.5935 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/0.4153, allocations: 4.169 MB / 0.5975 GB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.4155, allocations: 11.89 kB / 0.5976 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006178/0.4161, allocations: 131.9 kB / 0.5977 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/0.4163, allocations: 146.3 kB / 0.5978 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009194/0.4254, allocations: 3.503 MB / 0.6012 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03121/0.4567, allocations: 12.84 MB / 0.6138 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005333/0.462, allocations: 2.156 MB / 0.6159 GB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002309/0.4643, allocations: 0.9968 MB / 0.6169 GB, free: 1.387 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007189/0.4715, allocations: 2.858 MB / 0.6196 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/0.4715, allocations: 51.55 kB / 0.6197 GB, free: 14.44 MB / 430.1 MB Notification: Performance of pre-optimization done (n=107): time 3.607e-06/0.4715, allocations: 0 / 0.6197 GB, free: 14.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.01108/0.4826, allocations: 4.133 MB / 0.6237 GB, free: 10.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.4827, allocations: 64.41 kB / 0.6238 GB, free: 10.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003394/0.4861, allocations: 1.627 MB / 0.6254 GB, free: 8.555 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002055/0.4863, allocations: 49.7 kB / 0.6254 GB, free: 8.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.4877, allocations: 1.469 MB / 0.6269 GB, free: 7.016 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005411/0.4883, allocations: 408.5 kB / 0.6273 GB, free: 6.613 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006013/0.4889, allocations: 283.4 kB / 0.6275 GB, free: 6.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.489, allocations: 301.1 kB / 0.6278 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.4903, allocations: 0.57 MB / 0.6284 GB, free: 5.461 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.492, allocations: 1.059 MB / 0.6294 GB, free: 4.188 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/0.495, allocations: 1.733 MB / 0.6311 GB, free: 2.242 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/0.495, allocations: 4 kB / 0.6311 GB, free: 2.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00449/0.4995, allocations: 1.979 MB / 0.633 GB, free: 244 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.4996, allocations: 12 kB / 0.633 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.075e-05/0.4996, allocations: 15.98 kB / 0.6331 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004383/0.5, allocations: 134.5 kB / 0.6332 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.5016, allocations: 367.8 kB / 0.6335 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.5049, allocations: 3.177 MB / 0.6366 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.5064, allocations: 71.92 kB / 0.6367 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.5066, allocations: 72.11 kB / 0.6368 GB, free: 12.16 MB / 446.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.002076/0.5087, allocations: 0.9541 MB / 0.6377 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005082/0.5092, allocations: 186.8 kB / 0.6379 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003836/0.513, allocations: 1.644 MB / 0.6395 GB, free: 9.352 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.513, allocations: 12 kB / 0.6395 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.5131, allocations: 4 kB / 0.6395 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.5131, allocations: 15.91 kB / 0.6395 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009043/0.5221, allocations: 4.175 MB / 0.6436 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.5221, allocations: 4 kB / 0.6436 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009142/0.523, allocations: 179.9 kB / 0.6438 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009318/0.524, allocations: 319.2 kB / 0.6441 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.716e-05/0.5241, allocations: 27.98 kB / 0.6441 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009065/0.5331, allocations: 7.791 MB / 0.6517 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.5331, allocations: 3.938 kB / 0.6517 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00511/0.5382, allocations: 2.421 MB / 0.6541 GB, free: 9.805 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5394, allocations: 310.7 kB / 0.6544 GB, free: 9.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000541/0.5399, allocations: 24.19 kB / 0.6544 GB, free: 9.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.5411, allocations: 59.95 kB / 0.6545 GB, free: 9.418 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.5414, allocations: 88.77 kB / 0.6545 GB, free: 9.332 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.692e-05/0.5414, allocations: 35.98 kB / 0.6546 GB, free: 9.297 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002353/0.5438, allocations: 1.107 MB / 0.6557 GB, free: 8.195 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5438, allocations: 0 / 0.6557 GB, free: 8.195 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002954/0.5468, allocations: 0.5195 MB / 0.6562 GB, free: 7.676 MB / 462.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.005723/0.5525, allocations: 3.017 MB / 0.6591 GB, free: 4.598 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003376/0.5559, allocations: 1.588 MB / 0.6607 GB, free: 2.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.5559, allocations: 4.25 kB / 0.6607 GB, free: 2.977 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002231/0.5581, allocations: 1.182 MB / 0.6618 GB, free: 1.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/0.5615, allocations: 0.5079 MB / 0.6623 GB, free: 1.246 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03953/0.601, allocations: 17.85 MB / 0.6797 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003274/0.6043, allocations: 2.237 MB / 0.6819 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001444/0.6057, allocations: 383.5 kB / 0.6823 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/0.6076, allocations: 1.124 MB / 0.6834 GB, free: 10.93 MB / 494.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6076, allocations: 0 / 0.6834 GB, free: 10.93 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.348/0.9556, allocations: 49.42 MB / 0.7317 GB, free: 112.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/15.9, allocations: 6.641 kB / 0.7317 GB, free: 112.1 MB / 494.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.483610310126096] Failed to read output from testmodel.py, exit status != 0: 16.044538552872837 16.053929939 15.673272272 Calling exit ...