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.002085/0.002085, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.00262/0.00262, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.451/1.451, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.001945/0.001945, allocations: 71.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1051, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.2105/0.3156, allocations: 11.5 MB / 438.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006485/0.3221, allocations: 3.595 MB / 442.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.3242, allocations: 85.47 kB / 442.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.3267, allocations: 0.8994 MB / 443.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.3301, allocations: 0.972 MB / 444.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.3313, allocations: 451.1 kB / 444.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00519/0.3365, allocations: 3.754 MB / 448.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00405/0.3406, allocations: 2.1 MB / 450.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003649/0.3442, allocations: 1.696 MB / 452.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00478/0.349, allocations: 2.019 MB / 454.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001501/0.3505, allocations: 419.6 kB / 454.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.3534, allocations: 0.5022 MB / 455 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002633/0.356, allocations: 1.201 MB / 456.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005412/0.3614, allocations: 1.945 MB / 458.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008326/0.3698, allocations: 5.567 MB / 463.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3698, allocations: 0 / 463.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3698, allocations: 0 / 463.7 MB, free: 7.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002013/0.37, allocations: 1.344 kB / 463.7 MB, free: 7.793 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.01017/0.3801, allocations: 3.912 MB / 467.6 MB, free: 5.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3802, allocations: 9.062 kB / 467.6 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007227/0.3809, allocations: 408.5 kB / 468 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.3821, allocations: 410.8 kB / 468.4 MB, free: 4.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004063/0.3861, allocations: 2.077 MB / 470.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.3863, allocations: 217.5 kB / 470.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004332/0.3867, allocations: 286.3 kB / 471 MB, free: 2.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006862/0.3936, allocations: 3.857 MB / 474.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.669e-05/0.3937, allocations: 12.08 kB / 474.9 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002859/0.394, allocations: 114.5 kB / 475 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.3941, allocations: 124.6 kB / 475.1 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.4, allocations: 3.254 MB / 478.4 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02094/0.4209, allocations: 11.81 MB / 490.2 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00375/0.4247, allocations: 3.544 MB / 493.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/0.4268, allocations: 1.168 MB / 494.9 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002716/0.4271, allocations: 118.4 kB / 495 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.4272, allocations: 55.81 kB / 495 MB, free: 11.89 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 2.976e-06/0.4272, allocations: 0 / 495 MB, free: 11.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.0158/0.443, allocations: 7.355 MB / 0.4906 GB, free: 4.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.443, allocations: 68.72 kB / 0.4907 GB, free: 4.207 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003654/0.4467, allocations: 2.064 MB / 0.4927 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002471/0.4469, allocations: 49.7 kB / 0.4928 GB, free: 2.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/0.4482, allocations: 1.413 MB / 0.4941 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006037/0.4488, allocations: 0.5423 MB / 0.4947 GB, free: 76 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006256/0.4494, allocations: 347.4 kB / 0.495 GB, free: 15.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4495, allocations: 309.1 kB / 0.4953 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.451, allocations: 0.8627 MB / 0.4961 GB, free: 14.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.4528, allocations: 1.365 MB / 0.4975 GB, free: 12.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.4562, allocations: 2.331 MB / 0.4997 GB, free: 10.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.4562, allocations: 4 kB / 0.4997 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006181/0.4624, allocations: 3.274 MB / 0.5029 GB, free: 7.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.4624, allocations: 12 kB / 0.503 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.4624, allocations: 16 kB / 0.503 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/0.465, allocations: 0.8446 MB / 0.5038 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4663, allocations: 347.4 kB / 0.5041 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/0.487, allocations: 20.58 MB / 0.5242 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.4891, allocations: 107.9 kB / 0.5243 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.4893, allocations: 76 kB / 0.5244 GB, free: 15.59 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.001891/0.4912, allocations: 0.9305 MB / 0.5253 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.4918, allocations: 230.5 kB / 0.5255 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004892/0.4967, allocations: 2.613 MB / 0.5281 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/0.4967, allocations: 16 kB / 0.5281 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.4967, allocations: 8 kB / 0.5281 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.4967, allocations: 7.969 kB / 0.5281 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01094/0.5076, allocations: 5.871 MB / 0.5338 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.5077, allocations: 4 kB / 0.5338 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007901/0.5084, allocations: 199.6 kB / 0.534 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/0.5104, allocations: 0.736 MB / 0.5348 GB, free: 4.695 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.5106, allocations: 36 kB / 0.5348 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01764/0.5282, allocations: 18.16 MB / 0.5525 GB, free: 1.109 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.5282, allocations: 4 kB / 0.5525 GB, free: 1.105 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006688/0.5349, allocations: 3.804 MB / 0.5562 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/0.5362, allocations: 495.5 kB / 0.5567 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.5365, allocations: 43.91 kB / 0.5568 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.5376, allocations: 107.9 kB / 0.5569 GB, free: 12.53 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/0.538, allocations: 137 kB / 0.557 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.5381, allocations: 51.98 kB / 0.557 GB, free: 12.35 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002354/0.5405, allocations: 1.4 MB / 0.5584 GB, free: 10.93 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5405, allocations: 0 / 0.5584 GB, free: 10.93 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002795/0.5433, allocations: 0.6562 MB / 0.559 GB, free: 10.27 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.006668/0.5499, allocations: 4.451 MB / 0.5634 GB, free: 5.695 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005198/0.5551, allocations: 3.365 MB / 0.5667 GB, free: 2.188 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.5551, allocations: 0 / 0.5667 GB, free: 2.188 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002856/0.558, allocations: 2.148 MB / 0.5688 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/0.5614, allocations: 0.6899 MB / 0.5695 GB, free: 15.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03845/0.5998, allocations: 22.59 MB / 0.5915 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002401/0.6022, allocations: 2.288 MB / 0.5937 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001527/0.6038, allocations: 0.4949 MB / 0.5942 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/0.6053, allocations: 1.085 MB / 0.5953 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of SimCode: time 7.02e-07/0.6053, allocations: 0 / 0.5953 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3373/0.9426, allocations: 60.31 MB / 0.6542 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.92, allocations: 21.42 kB / 0.6542 GB, free: 153.7 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 & 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.448529091197997] 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.042211948893964 15.061721189 14.687676736 Calling exit ...