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.00178/0.00178, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.002112/0.002112, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.44/1.44, allocations: 230.5 MB / 254.7 MB, free: 15 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.001948/0.001948, allocations: 67.88 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1165, allocations: 53.31 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.2257/0.3421, allocations: 11.51 MB / 438.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006155/0.3483, allocations: 3.591 MB / 442 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001779/0.3501, allocations: 69.72 kB / 442.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.3524, allocations: 0.8967 MB / 443 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003082/0.3555, allocations: 0.9803 MB / 443.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3567, allocations: 439.4 kB / 444.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004828/0.3615, allocations: 3.753 MB / 448.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00348/0.365, allocations: 2.099 MB / 450.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003417/0.3684, allocations: 1.671 MB / 451.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004343/0.3727, allocations: 2.01 MB / 453.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001248/0.374, allocations: 417.8 kB / 454.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.3759, allocations: 0.5068 MB / 454.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001656/0.3776, allocations: 1.209 MB / 456 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003894/0.3815, allocations: 1.94 MB / 458 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007765/0.3892, allocations: 5.571 MB / 463.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3892, allocations: 0 / 463.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3892, allocations: 0 / 463.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00014/0.3894, allocations: 1.125 kB / 463.5 MB, free: 7.887 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.008743/0.3981, allocations: 3.909 MB / 467.4 MB, free: 5.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.3982, allocations: 13.27 kB / 467.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005871/0.3988, allocations: 410.3 kB / 467.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.3999, allocations: 410.8 kB / 468.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/0.4043, allocations: 2.076 MB / 470.3 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/0.4045, allocations: 212.5 kB / 470.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004417/0.405, allocations: 286.2 kB / 470.8 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006453/0.4114, allocations: 3.857 MB / 474.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-05/0.4115, allocations: 8.078 kB / 474.7 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/0.4118, allocations: 120.7 kB / 474.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.4119, allocations: 124.8 kB / 474.9 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00575/0.4176, allocations: 3.256 MB / 478.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02314/0.4408, allocations: 11.81 MB / 490 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003989/0.4447, allocations: 3.544 MB / 493.5 MB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002359/0.4471, allocations: 1.168 MB / 494.7 MB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.4474, allocations: 122.3 kB / 494.8 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.295e-05/0.4475, allocations: 51.88 kB / 494.9 MB, free: 12.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.925e-06/0.4475, allocations: 4 kB / 494.9 MB, free: 12.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01607/0.4635, allocations: 7.353 MB / 0.4905 GB, free: 4.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.4636, allocations: 68.72 kB / 0.4905 GB, free: 4.355 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004291/0.4679, allocations: 2.06 MB / 0.4925 GB, free: 2.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002242/0.4681, allocations: 57.7 kB / 0.4926 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.4694, allocations: 1.405 MB / 0.494 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006656/0.4701, allocations: 0.5384 MB / 0.4945 GB, free: 236 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007857/0.4708, allocations: 351.5 kB / 0.4948 GB, free: 15.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.471, allocations: 301.1 kB / 0.4951 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.4726, allocations: 0.8705 MB / 0.496 GB, free: 14.71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.4748, allocations: 1.365 MB / 0.4973 GB, free: 13.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004059/0.4788, allocations: 2.33 MB / 0.4996 GB, free: 10.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.201e-05/0.4788, allocations: 4 kB / 0.4996 GB, free: 10.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007143/0.486, allocations: 3.274 MB / 0.5028 GB, free: 7.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.486, allocations: 14.66 kB / 0.5028 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-05/0.4861, allocations: 12 kB / 0.5028 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.4886, allocations: 0.8466 MB / 0.5036 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.4899, allocations: 347.4 kB / 0.504 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02304/0.5129, allocations: 20.59 MB / 0.5241 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/0.5151, allocations: 95.94 kB / 0.5242 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003724/0.5154, allocations: 76 kB / 0.5242 GB, free: 15.75 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.002519/0.518, allocations: 0.9306 MB / 0.5251 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007717/0.5187, allocations: 230.5 kB / 0.5254 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/0.5243, allocations: 2.621 MB / 0.5279 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.5243, allocations: 12 kB / 0.5279 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.842e-05/0.5243, allocations: 8 kB / 0.5279 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/0.5243, allocations: 8.078 kB / 0.5279 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.5375, allocations: 5.867 MB / 0.5337 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.5375, allocations: 4 kB / 0.5337 GB, free: 5.812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008086/0.5383, allocations: 199.6 kB / 0.5339 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/0.5404, allocations: 0.7365 MB / 0.5346 GB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.5405, allocations: 32.09 kB / 0.5346 GB, free: 4.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/0.56, allocations: 18.17 MB / 0.5524 GB, free: 1.262 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.56, allocations: 8.062 kB / 0.5524 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006873/0.5669, allocations: 3.792 MB / 0.5561 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/0.5688, allocations: 499.5 kB / 0.5565 GB, free: 12.84 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008529/0.5696, allocations: 35.98 kB / 0.5566 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.5713, allocations: 111.8 kB / 0.5567 GB, free: 12.69 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004169/0.5717, allocations: 137 kB / 0.5568 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.5719, allocations: 48.09 kB / 0.5569 GB, free: 12.51 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003086/0.575, allocations: 1.404 MB / 0.5582 GB, free: 11.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.575, allocations: 0 / 0.5582 GB, free: 11.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003631/0.5786, allocations: 0.6601 MB / 0.5589 GB, free: 10.43 MB / 478.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.007357/0.586, allocations: 4.45 MB / 0.5632 GB, free: 5.852 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0058/0.5918, allocations: 3.361 MB / 0.5665 GB, free: 2.348 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/0.5918, allocations: 7.938 kB / 0.5665 GB, free: 2.34 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003032/0.5948, allocations: 2.14 MB / 0.5686 GB, free: 72 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/0.599, allocations: 0.6902 MB / 0.5693 GB, free: 15.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04559/0.6446, allocations: 22.59 MB / 0.5913 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003581/0.6481, allocations: 2.291 MB / 0.5936 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0019/0.65, allocations: 0.4949 MB / 0.5941 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001864/0.6519, allocations: 1.081 MB / 0.5951 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.6519, allocations: 0 / 0.5951 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3759/1.028, allocations: 60.32 MB / 0.654 GB, free: 154 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/15.1, allocations: 15.45 kB / 0.654 GB, free: 154 MB / 0.5137 GB " [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.524244505912066] 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.218242730014026 15.226651529 14.835191927 Calling exit ...