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.SMR_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.001303/0.001303, allocations: 108.7 kB / 19.8 MB, free: 2.516 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.0014/0.0014, allocations: 218.2 kB / 23 MB, free: 5.609 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.447/1.447, allocations: 230.5 MB / 256.5 MB, free: 8.434 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.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001942/0.001942, allocations: 67.83 kB / 376.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2567, allocations: 53.31 MB / 429.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01182/0.2686, allocations: 9.762 MB / 439.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006155/0.2747, allocations: 3.173 MB / 442.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.2758, allocations: 55.75 kB / 442.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.2775, allocations: 0.7221 MB / 443.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002293/0.2798, allocations: 0.7999 MB / 444.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008792/0.2807, allocations: 399.4 kB / 444.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.2836, allocations: 2.56 MB / 447 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.2854, allocations: 1.303 MB / 448.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.287, allocations: 1.203 MB / 449.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00227/0.2892, allocations: 1.537 MB / 451 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000544/0.2898, allocations: 320 kB / 451.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008604/0.2907, allocations: 419.8 kB / 451.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009691/0.2916, allocations: 0.9193 MB / 452.7 MB, free: 144 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00168/0.2933, allocations: 1.423 MB / 454.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00474/0.298, allocations: 4.172 MB / 458.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.298, allocations: 0 / 458.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.298, allocations: 0 / 458.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.134e-05/0.2981, allocations: 0 / 458.3 MB, free: 10.52 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006057/0.3042, allocations: 2.987 MB / 461.3 MB, free: 7.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.3042, allocations: 8.031 kB / 461.3 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004812/0.3047, allocations: 312.2 kB / 461.6 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009335/0.3056, allocations: 303.2 kB / 461.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003328/0.309, allocations: 1.551 MB / 463.4 MB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.3091, allocations: 164.1 kB / 463.6 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003672/0.3095, allocations: 215.9 kB / 463.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005199/0.3147, allocations: 2.799 MB / 466.6 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.444e-05/0.3147, allocations: 4 kB / 466.6 MB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.3149, allocations: 83.98 kB / 466.7 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.3151, allocations: 112.2 kB / 466.8 MB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004357/0.3194, allocations: 2.343 MB / 469.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/0.3338, allocations: 8.521 MB / 477.7 MB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002496/0.3362, allocations: 1.639 MB / 479.3 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.338, allocations: 0.9049 MB / 480.2 MB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003072/0.3383, allocations: 212.2 kB / 480.4 MB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.3383, allocations: 47.5 kB / 480.5 MB, free: 3.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.855e-06/0.3383, allocations: 0 / 480.5 MB, free: 3.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01378/0.3521, allocations: 6.253 MB / 486.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3521, allocations: 64.41 kB / 486.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.3544, allocations: 1.445 MB / 488.2 MB, free: 11.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.3545, allocations: 41.7 kB / 488.3 MB, free: 11.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008478/0.3554, allocations: 1.075 MB / 489.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.3558, allocations: 428.3 kB / 489.8 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004365/0.3562, allocations: 263.5 kB / 490 MB, free: 9.918 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3564, allocations: 361.9 kB / 490.4 MB, free: 9.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.3576, allocations: 0.6871 MB / 491.1 MB, free: 8.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.359, allocations: 1.066 MB / 492.1 MB, free: 7.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.3619, allocations: 1.879 MB / 494 MB, free: 5.605 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3619, allocations: 0 / 494 MB, free: 5.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004508/0.3664, allocations: 2.418 MB / 496.4 MB, free: 3.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.3664, allocations: 12 kB / 496.4 MB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.3664, allocations: 16.19 kB / 496.4 MB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3675, allocations: 409.9 kB / 496.8 MB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.3687, allocations: 335.5 kB / 497.2 MB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007813/0.3765, allocations: 7.039 MB / 0.4924 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.378, allocations: 107.8 kB / 0.4925 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.3781, allocations: 56 kB / 0.4925 GB, free: 10.76 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.00139/0.3795, allocations: 0.6924 MB / 0.4932 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003835/0.3799, allocations: 174.9 kB / 0.4934 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/0.3838, allocations: 2.123 MB / 0.4955 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.3838, allocations: 12 kB / 0.4955 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.3838, allocations: 4 kB / 0.4955 GB, free: 7.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.3838, allocations: 3.984 kB / 0.4955 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007792/0.3916, allocations: 4.552 MB / 0.4999 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/0.3916, allocations: 8.094 kB / 0.4999 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008953/0.3925, allocations: 211.7 kB / 0.5001 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.3937, allocations: 450.5 kB / 0.5006 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-05/0.3938, allocations: 31.98 kB / 0.5006 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008913/0.4027, allocations: 8.628 MB / 0.509 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.4027, allocations: 7.938 kB / 0.509 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005373/0.4081, allocations: 3.092 MB / 0.5121 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000879/0.409, allocations: 387.9 kB / 0.5124 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.4092, allocations: 35.98 kB / 0.5125 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008421/0.41, allocations: 83.84 kB / 0.5125 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002361/0.4102, allocations: 96.75 kB / 0.5126 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.961e-05/0.4103, allocations: 39.98 kB / 0.5127 GB, free: 5.293 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001521/0.4118, allocations: 0.9849 MB / 0.5136 GB, free: 4.309 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4118, allocations: 4 kB / 0.5136 GB, free: 4.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001692/0.4135, allocations: 463.9 kB / 0.5141 GB, free: 3.852 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005627/0.4192, allocations: 3.734 MB / 0.5177 GB, free: 20 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003834/0.423, allocations: 2.166 MB / 0.5198 GB, free: 13.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.423, allocations: 4 kB / 0.5198 GB, free: 13.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.4254, allocations: 1.38 MB / 0.5212 GB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.4273, allocations: 427.5 kB / 0.5216 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/0.4536, allocations: 16.95 MB / 0.5381 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001761/0.4553, allocations: 1.803 MB / 0.5399 GB, free: 8.465 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.4566, allocations: 365.6 kB / 0.5403 GB, free: 8.102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/0.4578, allocations: 0.8156 MB / 0.5411 GB, free: 7.285 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4578, allocations: 0 / 0.5411 GB, free: 7.285 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2901/0.7479, allocations: 42.38 MB / 0.5824 GB, free: 94.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.52, allocations: 10.66 kB / 0.5825 GB, free: 94.3 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.929273151006782] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]', 'vfController.x'] 13.630377794994274 13.640091129 13.339317596999999 Calling exit ...