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.001592/0.001592, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001962/0.001962, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.436/1.436, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.001979/0.001979, allocations: 71.83 kB / 373.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.108, allocations: 53.32 MB / 426.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.2132/0.3212, allocations: 10.39 MB / 437.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005623/0.3268, allocations: 3.496 MB / 440.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.3285, allocations: 59.72 kB / 440.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.3306, allocations: 0.834 MB / 441.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.3334, allocations: 0.874 MB / 442.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.3344, allocations: 431.4 kB / 443 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003243/0.3377, allocations: 2.759 MB / 445.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002092/0.3398, allocations: 1.723 MB / 447.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.3419, allocations: 1.271 MB / 448.7 MB, free: 92 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.3446, allocations: 1.623 MB / 450.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006041/0.3452, allocations: 334.1 kB / 450.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.3463, allocations: 448.5 kB / 451.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.3475, allocations: 0.9571 MB / 452.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002183/0.3496, allocations: 1.505 MB / 453.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005859/0.3555, allocations: 4.411 MB / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3555, allocations: 3.938 kB / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3555, allocations: 0 / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.3556, allocations: 1.25 kB / 458 MB, free: 11.55 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.006992/0.3626, allocations: 3.136 MB / 461.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3626, allocations: 9.219 kB / 461.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000476/0.3631, allocations: 322.3 kB / 461.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009545/0.3641, allocations: 331.9 kB / 461.8 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003402/0.3675, allocations: 1.637 MB / 463.4 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.3676, allocations: 173.9 kB / 463.6 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003744/0.368, allocations: 219.5 kB / 463.8 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005335/0.3733, allocations: 2.921 MB / 466.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.3734, allocations: 6.781 kB / 466.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002166/0.3736, allocations: 92.5 kB / 466.8 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3737, allocations: 120 kB / 466.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005118/0.3789, allocations: 2.428 MB / 469.4 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/0.3958, allocations: 9.04 MB / 478.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.3983, allocations: 1.633 MB / 480 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.4, allocations: 0.9174 MB / 480.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/0.4004, allocations: 211.2 kB / 481.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.4004, allocations: 43.56 kB / 481.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.705e-06/0.4004, allocations: 0 / 481.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01467/0.4151, allocations: 6.591 MB / 487.8 MB, free: 3.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.4151, allocations: 68.34 kB / 487.9 MB, free: 3.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002756/0.4179, allocations: 1.57 MB / 489.4 MB, free: 1.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.418, allocations: 45.7 kB / 489.5 MB, free: 1.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.419, allocations: 1.138 MB / 490.6 MB, free: 484 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003988/0.4194, allocations: 452.1 kB / 491 MB, free: 28 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004498/0.4199, allocations: 271.6 kB / 491.3 MB, free: 15.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.42, allocations: 305.1 kB / 491.6 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4212, allocations: 0.7066 MB / 492.3 MB, free: 14.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.4229, allocations: 1.142 MB / 493.5 MB, free: 13.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002935/0.4258, allocations: 1.967 MB / 495.4 MB, free: 11.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.4258, allocations: 4 kB / 495.4 MB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004489/0.4303, allocations: 2.527 MB / 498 MB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.4304, allocations: 8 kB / 498 MB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/0.4304, allocations: 16 kB / 498 MB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009726/0.4314, allocations: 423.4 kB / 498.4 MB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.4326, allocations: 351.4 kB / 498.7 MB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00793/0.4406, allocations: 7.132 MB / 0.494 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.4421, allocations: 103.8 kB / 0.4941 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4422, allocations: 71.98 kB / 0.4942 GB, free: 204 kB / 398.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.001405/0.4437, allocations: 0.716 MB / 0.4949 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/0.444, allocations: 178.9 kB / 0.4951 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.4479, allocations: 2.19 MB / 0.4972 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4479, allocations: 12 kB / 0.4972 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.4479, allocations: 4 kB / 0.4972 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.4479, allocations: 11.92 kB / 0.4972 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008555/0.4565, allocations: 4.767 MB / 0.5019 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.4565, allocations: 4 kB / 0.5019 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009333/0.4574, allocations: 215.7 kB / 0.5021 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.4586, allocations: 451.2 kB / 0.5025 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.4588, allocations: 39.98 kB / 0.5026 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009289/0.4681, allocations: 8.7 MB / 0.511 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.4681, allocations: 4 kB / 0.5111 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005489/0.4736, allocations: 3.219 MB / 0.5142 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.4747, allocations: 407.8 kB / 0.5146 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003441/0.475, allocations: 39.98 kB / 0.5146 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009799/0.476, allocations: 83.91 kB / 0.5147 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.4763, allocations: 92.75 kB / 0.5148 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.643e-05/0.4764, allocations: 39.98 kB / 0.5148 GB, free: 10.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.4782, allocations: 1.071 MB / 0.5159 GB, free: 9.109 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4782, allocations: 0 / 0.5159 GB, free: 9.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002097/0.4803, allocations: 492.1 kB / 0.5163 GB, free: 8.629 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.005966/0.4863, allocations: 3.854 MB / 0.5201 GB, free: 4.672 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00414/0.4904, allocations: 2.227 MB / 0.5223 GB, free: 2.387 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.4904, allocations: 0 / 0.5223 GB, free: 2.387 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002511/0.4929, allocations: 1.419 MB / 0.5237 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.4953, allocations: 497.2 kB / 0.5241 GB, free: 460 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02974/0.525, allocations: 17.92 MB / 0.5416 GB, free: 13.78 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.527, allocations: 1.883 MB / 0.5435 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00134/0.5283, allocations: 382.9 kB / 0.5438 GB, free: 11.49 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/0.5296, allocations: 0.8781 MB / 0.5447 GB, free: 10.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5296, allocations: 4 kB / 0.5447 GB, free: 10.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/0.6314, allocations: 45.61 MB / 0.5893 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.71, allocations: 0 / 0.5893 GB, free: 13.44 MB / 0.4981 GB " [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.211686853319407] 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.824519732035697 13.84889835 13.488783992 Calling exit ...