Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 109.1 kB / 20.22 MB, free: 1.812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 219.2 kB / 23.48 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.366/1.366, allocations: 230.4 MB / 257 MB, free: 8.266 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.89 kB / 377.1 MB, free: 3.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2579, allocations: 53.31 MB / 430.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01291/0.2708, allocations: 10.45 MB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007012/0.2778, allocations: 3.501 MB / 444.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001488/0.2793, allocations: 55.75 kB / 444.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.2812, allocations: 0.8309 MB / 445.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002453/0.2837, allocations: 0.8776 MB / 446.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009396/0.2846, allocations: 439.3 kB / 446.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003242/0.2878, allocations: 2.759 MB / 449.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.2898, allocations: 1.363 MB / 450.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.2916, allocations: 1.269 MB / 451.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002374/0.294, allocations: 1.623 MB / 453.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005341/0.2945, allocations: 332 kB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008877/0.2954, allocations: 447.8 kB / 454.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.2965, allocations: 0.9543 MB / 455.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.2982, allocations: 1.505 MB / 456.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004966/0.3031, allocations: 4.41 MB / 461.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3032, allocations: 0 / 461.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3032, allocations: 0 / 461.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.758e-05/0.3032, allocations: 0 / 461.2 MB, free: 8.277 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006243/0.3095, allocations: 3.132 MB / 464.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3095, allocations: 11.97 kB / 464.3 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004349/0.31, allocations: 332.9 kB / 464.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008851/0.3108, allocations: 334.9 kB / 465 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.3139, allocations: 1.642 MB / 466.6 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.314, allocations: 164.4 kB / 466.8 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003471/0.3143, allocations: 223.9 kB / 467 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005018/0.3194, allocations: 2.917 MB / 469.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.857e-05/0.3194, allocations: 3.984 kB / 469.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.3196, allocations: 92 kB / 470 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/0.3198, allocations: 116.3 kB / 470.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004335/0.3241, allocations: 2.43 MB / 472.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01457/0.3387, allocations: 9.042 MB / 481.6 MB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.3412, allocations: 1.63 MB / 483.2 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.3429, allocations: 0.9214 MB / 484.2 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003219/0.3432, allocations: 207.2 kB / 484.4 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.3433, allocations: 48.03 kB / 484.4 MB, free: 384 kB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.826e-06/0.3433, allocations: 0 / 484.4 MB, free: 384 kB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01413/0.3574, allocations: 6.594 MB / 491 MB, free: 9.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.3575, allocations: 68.39 kB / 491.1 MB, free: 9.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.3599, allocations: 1.57 MB / 492.6 MB, free: 7.965 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.464e-05/0.36, allocations: 45.7 kB / 492.7 MB, free: 7.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009301/0.3609, allocations: 1.138 MB / 493.8 MB, free: 6.762 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003903/0.3613, allocations: 456.1 kB / 494.3 MB, free: 6.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004548/0.3618, allocations: 271.5 kB / 494.5 MB, free: 6.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3619, allocations: 305.1 kB / 494.8 MB, free: 5.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.3632, allocations: 0.7066 MB / 495.5 MB, free: 5.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.3648, allocations: 1.138 MB / 496.7 MB, free: 3.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002983/0.3678, allocations: 1.967 MB / 498.6 MB, free: 1.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3678, allocations: 4 kB / 498.6 MB, free: 1.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00433/0.3721, allocations: 2.519 MB / 0.4894 GB, free: 15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.3721, allocations: 14.97 kB / 0.4894 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.3722, allocations: 15.98 kB / 0.4894 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009837/0.3731, allocations: 419.4 kB / 0.4898 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.3744, allocations: 359.4 kB / 0.4902 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00767/0.3821, allocations: 7.137 MB / 0.4972 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.3834, allocations: 103.9 kB / 0.4973 GB, free: 6.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.3835, allocations: 71.92 kB / 0.4973 GB, free: 6.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001297/0.3848, allocations: 0.7121 MB / 0.498 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/0.3851, allocations: 178.9 kB / 0.4982 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.389, allocations: 2.194 MB / 0.5003 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.3891, allocations: 12 kB / 0.5003 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3891, allocations: 7.938 kB / 0.5003 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3891, allocations: 11.97 kB / 0.5004 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008209/0.3973, allocations: 4.76 MB / 0.505 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.3973, allocations: 4 kB / 0.505 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009169/0.3982, allocations: 219.7 kB / 0.5052 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/0.3993, allocations: 455.1 kB / 0.5057 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.3994, allocations: 39.97 kB / 0.5057 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009178/0.4086, allocations: 8.69 MB / 0.5142 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-06/0.4086, allocations: 7.938 kB / 0.5142 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005355/0.414, allocations: 3.223 MB / 0.5173 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/0.415, allocations: 399.8 kB / 0.5177 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002186/0.4152, allocations: 35.98 kB / 0.5178 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008673/0.416, allocations: 84 kB / 0.5178 GB, free: 0.582 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.4163, allocations: 100.7 kB / 0.5179 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.4164, allocations: 43.98 kB / 0.518 GB, free: 452 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001722/0.4181, allocations: 1.071 MB / 0.519 GB, free: 15.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4181, allocations: 0 / 0.519 GB, free: 15.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001739/0.4198, allocations: 488.1 kB / 0.5195 GB, free: 14.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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 {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005724/0.4255, allocations: 3.858 MB / 0.5232 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003914/0.4295, allocations: 2.219 MB / 0.5254 GB, free: 8.652 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.4295, allocations: 4 kB / 0.5254 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/0.4319, allocations: 1.419 MB / 0.5268 GB, free: 7.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.434, allocations: 485.5 kB / 0.5273 GB, free: 6.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/0.4622, allocations: 17.95 MB / 0.5448 GB, free: 4.012 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001916/0.4641, allocations: 1.871 MB / 0.5466 GB, free: 2.109 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001165/0.4652, allocations: 386.8 kB / 0.547 GB, free: 1.727 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/0.4664, allocations: 0.8742 MB / 0.5478 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4664, allocations: 4 kB / 0.5478 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2811/0.7476, allocations: 45.72 MB / 0.5925 GB, free: 84.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.76, allocations: 12.03 kB / 0.5925 GB, free: 84.18 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.084705066867173] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smpm.is[1]', 'smpm.is[2]', 'smpm.idq_dr[1]', 'smpm.idq_rr[2]', 'smpm.idq_sr[1]', 'smpm.idq_sr[2]', 'vfController.x'] 13.87228839006275 13.887272853 13.580893961 Calling exit ...