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.001706/0.001706, allocations: 105.1 kB / 21.22 MB, free: 0.6797 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.00208/0.00208, allocations: 209.7 kB / 24.54 MB, free: 4.055 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.001929/0.001929, allocations: 60.77 kB / 378.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 53.37 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01317/0.2763, allocations: 10.46 MB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007515/0.2838, allocations: 3.497 MB / 445.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002042/0.2858, allocations: 75.5 kB / 446 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.2885, allocations: 0.8426 MB / 446.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.2919, allocations: 0.8854 MB / 447.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001477/0.2934, allocations: 438.6 kB / 448.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004518/0.2979, allocations: 2.766 MB / 450.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002331/0.3002, allocations: 1.352 MB / 452.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002635/0.3029, allocations: 1.3 MB / 453.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002986/0.3059, allocations: 1.619 MB / 455.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007655/0.3066, allocations: 340 kB / 455.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3078, allocations: 447.8 kB / 455.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.3089, allocations: 0.9504 MB / 456.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002082/0.311, allocations: 1.509 MB / 458.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006/0.317, allocations: 4.406 MB / 462.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.317, allocations: 3.938 kB / 462.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.317, allocations: 0 / 462.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001253/0.3171, allocations: 0 / 462.8 MB, free: 7.855 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.006971/0.3241, allocations: 3.069 MB / 465.9 MB, free: 4.738 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3241, allocations: 12.03 kB / 465.9 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000436/0.3246, allocations: 325 kB / 466.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009822/0.3255, allocations: 335 kB / 466.5 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003267/0.3288, allocations: 1.558 MB / 468.1 MB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.329, allocations: 164.4 kB / 468.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003854/0.3293, allocations: 223.9 kB / 468.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/0.3349, allocations: 2.917 MB / 471.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.21e-05/0.335, allocations: 4 kB / 471.4 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.3352, allocations: 87.98 kB / 471.5 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/0.3353, allocations: 116.3 kB / 471.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0046/0.3399, allocations: 2.441 MB / 474 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.3578, allocations: 8.861 MB / 482.9 MB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.3602, allocations: 1.182 MB / 484.1 MB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00193/0.3622, allocations: 0.9248 MB / 485 MB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002737/0.3624, allocations: 60.94 kB / 485 MB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/0.3625, allocations: 43.56 kB / 485.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 4.559e-06/0.3625, allocations: 0 / 485.1 MB, free: 1.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01566/0.3782, allocations: 6.071 MB / 491.2 MB, free: 10.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.275e-05/0.3783, allocations: 64.41 kB / 491.2 MB, free: 10.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003252/0.3815, allocations: 1.573 MB / 492.8 MB, free: 9.309 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.3817, allocations: 45.7 kB / 492.8 MB, free: 9.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3828, allocations: 1.138 MB / 494 MB, free: 8.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.3833, allocations: 452.2 kB / 494.4 MB, free: 7.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005458/0.3838, allocations: 275.5 kB / 494.7 MB, free: 7.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.384, allocations: 301.1 kB / 495 MB, free: 7.086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.3853, allocations: 0.7105 MB / 495.7 MB, free: 6.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001662/0.387, allocations: 1.134 MB / 496.8 MB, free: 5.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.3902, allocations: 1.975 MB / 498.8 MB, free: 2.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.105e-05/0.3903, allocations: 4 kB / 498.8 MB, free: 2.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00526/0.3955, allocations: 2.44 MB / 0.4895 GB, free: 440 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.3956, allocations: 12 kB / 0.4895 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.3956, allocations: 15.98 kB / 0.4895 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.3967, allocations: 427.3 kB / 0.4899 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.3981, allocations: 351.4 kB / 0.4903 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008144/0.4062, allocations: 6.824 MB / 0.4969 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001599/0.4078, allocations: 111.8 kB / 0.497 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002834/0.4081, allocations: 67.92 kB / 0.4971 GB, free: 8.293 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.001698/0.4098, allocations: 0.717 MB / 0.4978 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005569/0.4103, allocations: 174.9 kB / 0.498 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004418/0.4148, allocations: 2.111 MB / 0.5 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.4148, allocations: 12 kB / 0.5 GB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/0.4148, allocations: 7.938 kB / 0.5001 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.4148, allocations: 3.984 kB / 0.5001 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009815/0.4246, allocations: 4.672 MB / 0.5046 GB, free: 452 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.4246, allocations: 8.031 kB / 0.5046 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/0.4256, allocations: 219.6 kB / 0.5048 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.4269, allocations: 447.1 kB / 0.5053 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.427, allocations: 39.98 kB / 0.5053 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00959/0.4366, allocations: 8.277 MB / 0.5134 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/0.4366, allocations: 4 kB / 0.5134 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006186/0.4428, allocations: 3.14 MB / 0.5165 GB, free: 3.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.444, allocations: 330.8 kB / 0.5168 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005141/0.4446, allocations: 31.98 kB / 0.5168 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.4458, allocations: 79.91 kB / 0.5169 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.4461, allocations: 112.8 kB / 0.517 GB, free: 3.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.4462, allocations: 43.98 kB / 0.517 GB, free: 3.191 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002479/0.4486, allocations: 1.074 MB / 0.5181 GB, free: 2.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4486, allocations: 0 / 0.5181 GB, free: 2.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002441/0.4511, allocations: 484 kB / 0.5185 GB, free: 1.648 MB / 430.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.006634/0.4577, allocations: 3.781 MB / 0.5222 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004329/0.462, allocations: 2.144 MB / 0.5243 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/0.4621, allocations: 8.062 kB / 0.5243 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002716/0.4648, allocations: 1.426 MB / 0.5257 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/0.4678, allocations: 480.1 kB / 0.5262 GB, free: 9.648 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2482/0.716, allocations: 17.78 MB / 0.5435 GB, free: 97.99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.7173, allocations: 1.871 MB / 0.5454 GB, free: 97.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.7184, allocations: 388.9 kB / 0.5457 GB, free: 97.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008837/0.7193, allocations: 0.8753 MB / 0.5466 GB, free: 96.37 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7193, allocations: 0 / 0.5466 GB, free: 96.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08662/0.8059, allocations: 46.74 MB / 0.5922 GB, free: 54.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.32, allocations: 15.94 kB / 0.5923 GB, free: 54.17 MB / 446.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.798014155123383] 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'] 14.437314100097865 14.455651423 14.134867025 Calling exit ...