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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 244.8 MB, free: 14.15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 195.6 kB / 299.8 MB, free: 9.812 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04362/0.04362, allocations: 8.93 MB / 363.6 MB, free: 10.17 MB / 302.1 MB " [Timeout remaining time 180] 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.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: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 82.36 kB / 486.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1136, allocations: 54.41 MB / 0.5278 GB, free: 1.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01948/0.1331, allocations: 13.45 MB / 0.541 GB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.1431, allocations: 4.438 MB / 0.5453 GB, free: 15.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002795/0.1459, allocations: 87.69 kB / 0.5454 GB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003869/0.1498, allocations: 1.076 MB / 0.5464 GB, free: 14.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.1551, allocations: 1.343 MB / 0.5477 GB, free: 12.84 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.003013/0.1581, allocations: 0.8711 MB / 0.5486 GB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006373/0.1645, allocations: 3.81 MB / 0.5523 GB, free: 8.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004005/0.1685, allocations: 2.341 MB / 0.5546 GB, free: 5.727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00346/0.172, allocations: 1.788 MB / 0.5563 GB, free: 3.934 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004867/0.1768, allocations: 2.028 MB / 0.5583 GB, free: 1.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001964/0.1788, allocations: 500 kB / 0.5588 GB, free: 1.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002644/0.1814, allocations: 0.6872 MB / 0.5595 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002/0.1834, allocations: 1.075 MB / 0.5605 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004237/0.1877, allocations: 2.046 MB / 0.5625 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.1982, allocations: 6.428 MB / 0.5688 GB, free: 7.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1982, allocations: 0 / 0.5688 GB, free: 7.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1982, allocations: 0 / 0.5688 GB, free: 7.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002127/0.1984, allocations: 3.938 kB / 0.5688 GB, free: 7.137 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.01323/0.2116, allocations: 4.261 MB / 0.573 GB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.2117, allocations: 12.03 kB / 0.573 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001207/0.2129, allocations: 497.5 kB / 0.5734 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004277/0.2172, allocations: 0.7637 MB / 0.5742 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005694/0.2229, allocations: 2.326 MB / 0.5765 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/0.2231, allocations: 238.7 kB / 0.5767 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009083/0.224, allocations: 323.9 kB / 0.577 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008934/0.2329, allocations: 4.169 MB / 0.5811 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.358e-05/0.233, allocations: 3.953 kB / 0.5811 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000324/0.2333, allocations: 132 kB / 0.5812 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.2335, allocations: 138.3 kB / 0.5813 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007066/0.2406, allocations: 3.511 MB / 0.5848 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0242/0.2648, allocations: 13.07 MB / 0.5975 GB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006292/0.271, allocations: 5.4 MB / 0.6028 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002146/0.2732, allocations: 0.9737 MB / 0.6037 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006701/0.2799, allocations: 3.037 MB / 0.6067 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/0.28, allocations: 47.56 kB / 0.6068 GB, free: 14.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=107): time 3.677e-06/0.28, allocations: 4 kB / 0.6068 GB, free: 14.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.01113/0.2911, allocations: 4.637 MB / 0.6113 GB, free: 10 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.2912, allocations: 68.34 kB / 0.6114 GB, free: 9.922 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003533/0.2947, allocations: 1.61 MB / 0.6129 GB, free: 8.305 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.2949, allocations: 45.7 kB / 0.613 GB, free: 8.254 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.2962, allocations: 1.461 MB / 0.6144 GB, free: 6.777 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004827/0.2967, allocations: 408.5 kB / 0.6148 GB, free: 6.375 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005305/0.2972, allocations: 275.5 kB / 0.615 GB, free: 6.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2973, allocations: 301.1 kB / 0.6153 GB, free: 5.801 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.2985, allocations: 0.57 MB / 0.6159 GB, free: 5.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.3, allocations: 1.059 MB / 0.6169 GB, free: 3.949 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002786/0.3028, allocations: 1.729 MB / 0.6186 GB, free: 2.008 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.3029, allocations: 4 kB / 0.6186 GB, free: 2.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003964/0.3068, allocations: 2.047 MB / 0.6206 GB, free: 15.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.3068, allocations: 15.94 kB / 0.6206 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.977e-05/0.3069, allocations: 19.94 kB / 0.6207 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.3073, allocations: 130.9 kB / 0.6208 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.3088, allocations: 367.4 kB / 0.6211 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003579/0.3124, allocations: 3.38 MB / 0.6244 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.3138, allocations: 67.92 kB / 0.6245 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002105/0.314, allocations: 67.98 kB / 0.6246 GB, free: 11.6 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.002001/0.316, allocations: 0.9617 MB / 0.6255 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.3165, allocations: 186.9 kB / 0.6257 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003744/0.3203, allocations: 1.793 MB / 0.6274 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.3203, allocations: 12 kB / 0.6274 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/0.3203, allocations: 11.94 kB / 0.6274 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.3203, allocations: 3.984 kB / 0.6275 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009677/0.33, allocations: 4.338 MB / 0.6317 GB, free: 4.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.33, allocations: 0 / 0.6317 GB, free: 4.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009145/0.3309, allocations: 184 kB / 0.6319 GB, free: 3.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009235/0.3318, allocations: 303.1 kB / 0.6322 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.332, allocations: 31.98 kB / 0.6322 GB, free: 3.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008969/0.3409, allocations: 8.203 MB / 0.6402 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3409, allocations: 8.156 kB / 0.6402 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004784/0.3457, allocations: 2.56 MB / 0.6427 GB, free: 8.164 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.3468, allocations: 379.8 kB / 0.6431 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004223/0.3472, allocations: 27.98 kB / 0.6431 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00098/0.3482, allocations: 55.97 kB / 0.6431 GB, free: 7.691 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.3484, allocations: 84.81 kB / 0.6432 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.83e-05/0.3485, allocations: 39.92 kB / 0.6433 GB, free: 7.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0021/0.3506, allocations: 1.091 MB / 0.6443 GB, free: 6.484 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3506, allocations: 4 kB / 0.6443 GB, free: 6.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002223/0.3528, allocations: 0.5078 MB / 0.6448 GB, free: 5.973 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.005151/0.358, allocations: 3.171 MB / 0.6479 GB, free: 2.707 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003212/0.3612, allocations: 1.651 MB / 0.6495 GB, free: 1.008 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.3612, allocations: 0 / 0.6495 GB, free: 1.008 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2385/0.5997, allocations: 1.172 MB / 0.6507 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/0.6028, allocations: 0.4946 MB / 0.6512 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03398/0.6368, allocations: 17.96 MB / 0.6687 GB, free: 103.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/0.6386, allocations: 2.235 MB / 0.6709 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001324/0.6399, allocations: 377.5 kB / 0.6712 GB, free: 101.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/0.6411, allocations: 1.109 MB / 0.6723 GB, free: 100.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.001e-06/0.6411, allocations: 0 / 0.6723 GB, free: 100.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.7432, allocations: 47.87 MB / 0.7191 GB, free: 53.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.39, allocations: 15.86 kB / 0.7191 GB, free: 53.18 MB / 462.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: 24.622952468227595] Failed to read output from testmodel.py, exit status != 0: 15.678467520978302 15.509578166 15.308086572 Calling exit ...