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.00131/0.00131, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.406/1.406, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001566/0.001566, allocations: 208.9 kB / 309.2 MB, free: 3.152 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.03996/0.03996, allocations: 8.918 MB / 374.6 MB, free: 6.582 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.00246/0.00246, allocations: 87.86 kB / 0.4892 GB, free: 44.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0841/0.08655, allocations: 55.61 MB / 0.5435 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01519/0.1017, allocations: 12.27 MB / 0.5554 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009128/0.1109, allocations: 4.45 MB / 0.5598 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002334/0.1132, allocations: 111.3 kB / 0.5599 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003332/0.1165, allocations: 1.041 MB / 0.5609 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004622/0.1212, allocations: 1.285 MB / 0.5622 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002487/0.1236, allocations: 0.8912 MB / 0.563 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2408/0.3644, allocations: 3.853 MB / 0.5668 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/0.367, allocations: 1.8 MB / 0.5686 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002781/0.3698, allocations: 1.843 MB / 0.5704 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003739/0.3735, allocations: 2.002 MB / 0.5723 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001254/0.3747, allocations: 498.5 kB / 0.5728 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.377, allocations: 0.6929 MB / 0.5735 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.3781, allocations: 1.075 MB / 0.5745 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003773/0.3819, allocations: 1.62 MB / 0.5761 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009763/0.3917, allocations: 6.494 MB / 0.5824 GB, free: 7.145 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3917, allocations: 2.203 kB / 0.5824 GB, free: 7.145 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3917, allocations: 0 / 0.5824 GB, free: 7.145 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001985/0.3919, allocations: 3.312 kB / 0.5824 GB, free: 7.145 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.01262/0.4045, allocations: 4.213 MB / 0.5866 GB, free: 4.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4045, allocations: 14.3 kB / 0.5866 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007815/0.4053, allocations: 491.3 kB / 0.587 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003682/0.409, allocations: 0.7589 MB / 0.5878 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004639/0.4136, allocations: 2.255 MB / 0.59 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.4138, allocations: 237.1 kB / 0.5902 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005901/0.4144, allocations: 314.6 kB / 0.5905 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007443/0.4218, allocations: 4.303 MB / 0.5947 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-05/0.4219, allocations: 5.766 kB / 0.5947 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.4222, allocations: 128.4 kB / 0.5948 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.4223, allocations: 141.2 kB / 0.595 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00687/0.4292, allocations: 3.511 MB / 0.5984 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02219/0.4514, allocations: 11.7 MB / 0.6098 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004268/0.4557, allocations: 2.147 MB / 0.6119 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001795/0.4575, allocations: 0.9918 MB / 0.6129 GB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005608/0.4631, allocations: 2.57 MB / 0.6154 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.4631, allocations: 48.19 kB / 0.6154 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.226e-06/0.4631, allocations: 0 / 0.6154 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.00915/0.4723, allocations: 4.144 MB / 0.6195 GB, free: 12.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.4723, allocations: 64.41 kB / 0.6196 GB, free: 12.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/0.4748, allocations: 1.655 MB / 0.6212 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.247e-05/0.4749, allocations: 41.7 kB / 0.6212 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001124/0.476, allocations: 1.47 MB / 0.6226 GB, free: 9.492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.4763, allocations: 413.7 kB / 0.623 GB, free: 9.094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004264/0.4768, allocations: 275.5 kB / 0.6233 GB, free: 8.816 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4769, allocations: 305.1 kB / 0.6236 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.4779, allocations: 0.57 MB / 0.6242 GB, free: 7.945 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.4793, allocations: 1.083 MB / 0.6252 GB, free: 6.648 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.4818, allocations: 1.731 MB / 0.6269 GB, free: 4.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.4818, allocations: 8.75 kB / 0.6269 GB, free: 4.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00342/0.4852, allocations: 1.976 MB / 0.6288 GB, free: 2.863 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.4852, allocations: 14.41 kB / 0.6289 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.4853, allocations: 20 kB / 0.6289 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000405/0.4857, allocations: 132.1 kB / 0.629 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.487, allocations: 364.5 kB / 0.6293 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.49, allocations: 3.168 MB / 0.6324 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.4913, allocations: 72.14 kB / 0.6325 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.4914, allocations: 68 kB / 0.6326 GB, free: 14.86 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.001853/0.4933, allocations: 0.9551 MB / 0.6335 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000324/0.4936, allocations: 182.8 kB / 0.6337 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.4969, allocations: 1.652 MB / 0.6353 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.4969, allocations: 8 kB / 0.6353 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.4969, allocations: 4 kB / 0.6353 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4969, allocations: 7.984 kB / 0.6353 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007595/0.5045, allocations: 3.946 MB / 0.6392 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.5045, allocations: 4.031 kB / 0.6392 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008505/0.5054, allocations: 178.4 kB / 0.6393 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008554/0.5062, allocations: 307.2 kB / 0.6396 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.957e-05/0.5063, allocations: 31.98 kB / 0.6397 GB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007819/0.5141, allocations: 7.721 MB / 0.6472 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5141, allocations: 7.578 kB / 0.6472 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.5185, allocations: 2.418 MB / 0.6496 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008918/0.5194, allocations: 310.8 kB / 0.6499 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.5196, allocations: 31.98 kB / 0.6499 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007642/0.5203, allocations: 51.91 kB / 0.6499 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.5205, allocations: 88.81 kB / 0.65 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.94e-05/0.5206, allocations: 32 kB / 0.6501 GB, free: 12.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001729/0.5223, allocations: 1.111 MB / 0.6511 GB, free: 11.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5223, allocations: 3.469 kB / 0.6512 GB, free: 11.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001804/0.5241, allocations: 0.5117 MB / 0.6517 GB, free: 10.89 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.004571/0.5287, allocations: 3.034 MB / 0.6546 GB, free: 7.836 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002806/0.5315, allocations: 1.57 MB / 0.6561 GB, free: 6.293 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.5315, allocations: 0 / 0.6561 GB, free: 6.293 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.5334, allocations: 1.182 MB / 0.6573 GB, free: 5.078 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.5357, allocations: 0.4998 MB / 0.6578 GB, free: 4.582 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0294/0.5651, allocations: 17.86 MB / 0.6752 GB, free: 2.137 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/0.5672, allocations: 1.688 MB / 0.6769 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.5685, allocations: 375.5 kB / 0.6772 GB, free: 48 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/0.57, allocations: 1.123 MB / 0.6783 GB, free: 14.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.523e-06/0.57, allocations: 0 / 0.6783 GB, free: 14.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1083/0.6784, allocations: 51.29 MB / 0.7284 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.21, allocations: 6.406 kB / 0.7284 GB, free: 12.13 MB / 0.5137 GB " [Timeout remaining time 647] (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: 17.48101881844923] Failed to read output from testmodel.py, exit status != 0: 13.342461603228003 13.360618605 12.965024642 Calling exit ...