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.001722/0.001722, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001424/0.001424, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.478/1.478, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.001987/0.001987, allocations: 64.77 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2718, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01421/0.286, allocations: 11.54 MB / 443.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007549/0.2936, allocations: 3.606 MB / 447.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.2953, allocations: 87.38 kB / 447.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.2977, allocations: 0.893 MB / 448.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.3007, allocations: 0.9787 MB / 449 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.3018, allocations: 447.2 kB / 449.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004839/0.3066, allocations: 3.762 MB / 453.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.3092, allocations: 1.593 MB / 454.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.3122, allocations: 1.698 MB / 456.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003407/0.3156, allocations: 2.02 MB / 458.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.3167, allocations: 420 kB / 459 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.3181, allocations: 0.5037 MB / 459.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.3195, allocations: 1.219 MB / 460.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00325/0.3228, allocations: 1.941 MB / 462.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007717/0.3305, allocations: 5.566 MB / 468.2 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3305, allocations: 0 / 468.2 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.3305, allocations: 8 kB / 468.2 MB, free: 2.418 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001625/0.3307, allocations: 0 / 468.2 MB, free: 2.418 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.00927/0.3399, allocations: 3.832 MB / 472 MB, free: 14.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.34, allocations: 12.03 kB / 472 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007168/0.3407, allocations: 413 kB / 472.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.3418, allocations: 410.6 kB / 472.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004276/0.3461, allocations: 2.001 MB / 474.9 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/0.3463, allocations: 217.8 kB / 475.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005824/0.3469, allocations: 283.9 kB / 475.3 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007872/0.3547, allocations: 3.861 MB / 479.2 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-05/0.3548, allocations: 7.953 kB / 479.2 MB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003142/0.3551, allocations: 116 kB / 479.3 MB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.3553, allocations: 129.5 kB / 479.5 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006442/0.3617, allocations: 3.25 MB / 482.7 MB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02441/0.3861, allocations: 11.64 MB / 494.3 MB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.3892, allocations: 1.747 MB / 496.1 MB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/0.3915, allocations: 1.149 MB / 497.2 MB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/0.3918, allocations: 53.27 kB / 497.3 MB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.957e-05/0.3918, allocations: 47.88 kB / 497.3 MB, free: 4.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 7.344e-06/0.3918, allocations: 7.984 kB / 497.3 MB, free: 4.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01554/0.4074, allocations: 6.525 MB / 0.4921 GB, free: 14.19 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.4074, allocations: 64.72 kB / 0.4921 GB, free: 14.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/0.4116, allocations: 2.076 MB / 0.4941 GB, free: 12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002203/0.4118, allocations: 49.7 kB / 0.4942 GB, free: 11.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.4131, allocations: 1.409 MB / 0.4956 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006311/0.4138, allocations: 0.5384 MB / 0.4961 GB, free: 9.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007628/0.4145, allocations: 347.4 kB / 0.4964 GB, free: 9.633 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.4147, allocations: 301.1 kB / 0.4967 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.4162, allocations: 0.8666 MB / 0.4976 GB, free: 8.469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001984/0.4182, allocations: 1.373 MB / 0.4989 GB, free: 6.891 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003526/0.4217, allocations: 2.322 MB / 0.5012 GB, free: 4.363 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/0.4217, allocations: 7.938 kB / 0.5012 GB, free: 4.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006291/0.428, allocations: 3.187 MB / 0.5043 GB, free: 1.125 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.4281, allocations: 12 kB / 0.5043 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/0.4281, allocations: 16 kB / 0.5043 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002556/0.4307, allocations: 0.8488 MB / 0.5051 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.432, allocations: 347.4 kB / 0.5055 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02008/0.4521, allocations: 19.47 MB / 0.5245 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.454, allocations: 95.88 kB / 0.5246 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003089/0.4543, allocations: 72 kB / 0.5246 GB, free: 10.98 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.002033/0.4563, allocations: 0.9438 MB / 0.5256 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006624/0.457, allocations: 230.5 kB / 0.5258 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005056/0.462, allocations: 2.542 MB / 0.5283 GB, free: 7.219 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.4621, allocations: 16 kB / 0.5283 GB, free: 7.203 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.544e-05/0.4621, allocations: 4 kB / 0.5283 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.4621, allocations: 7.984 kB / 0.5283 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.475, allocations: 5.765 MB / 0.5339 GB, free: 1.266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.475, allocations: 11.92 kB / 0.5339 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008742/0.4759, allocations: 195.7 kB / 0.5341 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/0.478, allocations: 0.7269 MB / 0.5348 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/0.4782, allocations: 35.98 kB / 0.5349 GB, free: 276 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.251/0.7291, allocations: 17.13 MB / 0.5516 GB, free: 85.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.7291, allocations: 7.812 kB / 0.5516 GB, free: 85.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005489/0.7346, allocations: 3.725 MB / 0.5552 GB, free: 83.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.7359, allocations: 419.2 kB / 0.5556 GB, free: 83.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/0.7362, allocations: 39.52 kB / 0.5557 GB, free: 83.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.7373, allocations: 107.5 kB / 0.5558 GB, free: 83.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/0.7376, allocations: 141.3 kB / 0.5559 GB, free: 83.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.52e-05/0.7377, allocations: 43.78 kB / 0.556 GB, free: 83.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.7396, allocations: 1.41 MB / 0.5573 GB, free: 83.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7396, allocations: 0 / 0.5573 GB, free: 83.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002372/0.742, allocations: 0.6533 MB / 0.558 GB, free: 83.13 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.005061/0.747, allocations: 4.377 MB / 0.5623 GB, free: 81.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003906/0.751, allocations: 3.364 MB / 0.5655 GB, free: 78.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.751, allocations: 4 kB / 0.5655 GB, free: 78.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.753, allocations: 2.148 MB / 0.5676 GB, free: 76.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/0.756, allocations: 0.6834 MB / 0.5683 GB, free: 75.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03262/0.7886, allocations: 22.48 MB / 0.5903 GB, free: 52.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002793/0.7914, allocations: 2.291 MB / 0.5925 GB, free: 50.26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001596/0.793, 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.001399/0.7944, allocations: 1.089 MB / 0.594 GB, free: 48.68 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.7944, allocations: 0 / 0.594 GB, free: 48.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1262/0.9206, allocations: 61.74 MB / 0.6543 GB, free: 3.617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/15.4, allocations: 5.969 kB / 0.6543 GB, free: 3.613 MB / 462.1 MB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.98049644380808] 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.528917704243213 15.557408901 15.221721799 Calling exit ...