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_ResistiveBraking.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.001532/0.001532, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001605/0.001605, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.437/1.437, allocations: 230.6 MB / 258.3 MB, free: 8.043 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_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",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.001964/0.001964, allocations: 76.75 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.294, allocations: 53.36 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01426/0.3083, allocations: 11.55 MB / 443.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00849/0.3168, allocations: 3.606 MB / 447.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.3191, allocations: 83.44 kB / 447.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.3216, allocations: 0.8969 MB / 448.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003201/0.3248, allocations: 0.9825 MB / 449.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.3259, allocations: 447.2 kB / 449.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004761/0.3306, allocations: 3.75 MB / 453.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002248/0.3329, allocations: 1.594 MB / 454.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.3355, allocations: 1.702 MB / 456.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.3386, allocations: 2.02 MB / 458.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007532/0.3394, allocations: 423.9 kB / 459 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.3405, allocations: 0.4999 MB / 459.5 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.3417, allocations: 1.219 MB / 460.7 MB, free: 10 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002536/0.3442, allocations: 1.941 MB / 462.6 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006456/0.3507, allocations: 5.57 MB / 468.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3507, allocations: 0 / 468.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3507, allocations: 0 / 468.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001593/0.3508, allocations: 4 kB / 468.2 MB, free: 2.457 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008646/0.3595, allocations: 3.832 MB / 472 MB, free: 14.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3595, allocations: 8.031 kB / 472 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006051/0.3601, allocations: 413 kB / 472.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.3612, allocations: 406.6 kB / 472.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.3656, allocations: 2.001 MB / 474.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/0.3658, allocations: 217.8 kB / 475.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004813/0.3663, allocations: 288 kB / 475.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006759/0.373, allocations: 3.861 MB / 479.2 MB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.574e-05/0.3731, allocations: 7.953 kB / 479.2 MB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002689/0.3734, allocations: 120 kB / 479.3 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.3735, allocations: 125.5 kB / 479.4 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005675/0.3792, allocations: 3.254 MB / 482.7 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02109/0.4003, allocations: 11.64 MB / 494.3 MB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.4033, allocations: 1.743 MB / 496.1 MB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002261/0.4055, allocations: 1.156 MB / 497.2 MB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002314/0.4058, allocations: 49.28 kB / 497.3 MB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.318e-05/0.4058, allocations: 43.88 kB / 497.3 MB, free: 4.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.836e-06/0.4058, allocations: 4 kB / 497.3 MB, free: 4.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01524/0.4211, allocations: 6.53 MB / 0.4921 GB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.4211, allocations: 64.72 kB / 0.4921 GB, free: 14.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004023/0.4251, allocations: 2.068 MB / 0.4941 GB, free: 12.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000169/0.4253, allocations: 53.64 kB / 0.4942 GB, free: 11.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.4266, allocations: 1.409 MB / 0.4956 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005545/0.4271, allocations: 0.5423 MB / 0.4961 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006942/0.4278, allocations: 351.4 kB / 0.4964 GB, free: 9.672 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4279, allocations: 305.1 kB / 0.4967 GB, free: 9.371 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.4295, allocations: 0.8627 MB / 0.4976 GB, free: 8.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/0.4314, allocations: 1.366 MB / 0.4989 GB, free: 6.938 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003433/0.4348, allocations: 2.33 MB / 0.5012 GB, free: 4.402 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/0.4348, allocations: 4 kB / 0.5012 GB, free: 4.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006136/0.441, allocations: 3.188 MB / 0.5043 GB, free: 1.168 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.441, allocations: 16.03 kB / 0.5043 GB, free: 1.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/0.441, allocations: 16 kB / 0.5043 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.4435, allocations: 0.8483 MB / 0.5051 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4448, allocations: 343.5 kB / 0.5055 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/0.4644, allocations: 19.46 MB / 0.5245 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/0.4662, allocations: 91.89 kB / 0.5246 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003248/0.4665, allocations: 75.98 kB / 0.5246 GB, free: 11.03 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002129/0.4686, allocations: 0.9383 MB / 0.5256 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/0.4693, allocations: 234.5 kB / 0.5258 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004954/0.4743, allocations: 2.542 MB / 0.5283 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4743, allocations: 16 kB / 0.5283 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.513e-05/0.4743, allocations: 4 kB / 0.5283 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.4743, allocations: 7.969 kB / 0.5283 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.4862, allocations: 5.777 MB / 0.5339 GB, free: 1.301 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/0.4862, allocations: 4 kB / 0.5339 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008223/0.4871, allocations: 195.7 kB / 0.5341 GB, free: 1.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002045/0.4891, allocations: 0.7342 MB / 0.5348 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/0.4893, allocations: 39.98 kB / 0.5349 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2329/0.7222, allocations: 17.12 MB / 0.5516 GB, free: 85.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.7222, allocations: 11.59 kB / 0.5516 GB, free: 85.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004771/0.727, allocations: 3.715 MB / 0.5552 GB, free: 83.95 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.728, allocations: 424.9 kB / 0.5556 GB, free: 83.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.7282, allocations: 31.84 kB / 0.5557 GB, free: 83.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009728/0.7292, allocations: 112.3 kB / 0.5558 GB, free: 83.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003408/0.7295, allocations: 146 kB / 0.5559 GB, free: 83.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.243e-05/0.7296, allocations: 47.62 kB / 0.556 GB, free: 83.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.7313, allocations: 1.402 MB / 0.5573 GB, free: 83.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7313, allocations: 3.594 kB / 0.5573 GB, free: 83.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002051/0.7334, allocations: 0.6549 MB / 0.558 GB, free: 83.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.004628/0.738, allocations: 4.377 MB / 0.5623 GB, free: 81.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.7417, allocations: 3.361 MB / 0.5655 GB, free: 78.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.7417, allocations: 0 / 0.5655 GB, free: 78.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.7436, allocations: 2.157 MB / 0.5676 GB, free: 76.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.7463, allocations: 0.6794 MB / 0.5683 GB, free: 75.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02767/0.7739, allocations: 22.5 MB / 0.5903 GB, free: 52.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/0.7755, allocations: 2.288 MB / 0.5925 GB, free: 50.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001253/0.7767, allocations: 0.491 MB / 0.593 GB, free: 49.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000966/0.7777, allocations: 1.089 MB / 0.5941 GB, free: 48.68 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7777, allocations: 0 / 0.5941 GB, free: 48.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1492/0.9269, allocations: 61.72 MB / 0.6543 GB, free: 3.645 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/15.22, allocations: 12.05 kB / 0.6543 GB, free: 3.633 MB / 462.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.685384629759938] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaLoad.phi', 'inertiaLoad.w', 'smpm.is[1]', 'smpm.is[2]', 'smpm.idq_sr[1]', 'smpm.idq_sr[2]', 'tauElectrical', 'tauShaft', 'wMechanical'] 15.343224479816854 15.362284597 15.006841276 Calling exit ...