Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008159/0.0008159, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008204/0.0008204, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8831/0.8831, allocations: 177.1 MB / 204.2 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0_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_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.552e-05, allocations: 6.219 kB / 324.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008196/0.008221, allocations: 10.06 MB / 334.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005401/0.01362, allocations: 3.423 MB / 338.1 MB, free: 2.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009919/0.01461, allocations: 87.38 kB / 338.2 MB, free: 2.145 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.01601, allocations: 0.8344 MB / 339 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001696/0.01771, allocations: 1.017 MB / 340 MB, free: 284 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005982/0.01831, allocations: 439.3 kB / 340.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002617/0.02093, allocations: 3.882 MB / 344.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.02235, allocations: 1.542 MB / 345.9 MB, free: 10.35 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002155/0.02451, allocations: 2.468 MB / 348.3 MB, free: 7.879 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001445/0.02595, allocations: 1.75 MB / 350.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003892/0.02634, allocations: 420 kB / 350.5 MB, free: 5.715 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000746/0.02709, allocations: 0.4997 MB / 351 MB, free: 5.215 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006955/0.02778, allocations: 1.243 MB / 352.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009633/0.02875, allocations: 1.349 MB / 353.6 MB, free: 2.617 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003528/0.03227, allocations: 5.625 MB / 359.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.03228, allocations: 0 / 359.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.03228, allocations: 0 / 359.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.597e-05/0.03236, allocations: 0 / 359.2 MB, free: 12.97 MB / 330.7 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.004455/0.03681, allocations: 3.809 MB / 363 MB, free: 9.109 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.03686, allocations: 8.031 kB / 363 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003685/0.03723, allocations: 413 kB / 363.4 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006351/0.03786, allocations: 406.6 kB / 363.8 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.04061, allocations: 2.004 MB / 365.8 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.04072, allocations: 210.1 kB / 366 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002782/0.041, allocations: 292.3 kB / 366.3 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004348/0.04535, allocations: 4.169 MB / 370.5 MB, free: 1.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.04541, allocations: 7.953 kB / 370.5 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.0456, allocations: 120 kB / 370.6 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.734e-05/0.04568, allocations: 121.5 kB / 370.7 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003829/0.04951, allocations: 3.25 MB / 374 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/0.06089, allocations: 10.76 MB / 384.7 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.06257, allocations: 1.734 MB / 386.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/0.06392, allocations: 1.156 MB / 387.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.06407, allocations: 53.55 kB / 387.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.0641, allocations: 51.81 kB / 387.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 2.996e-06/0.0641, allocations: 3.938 kB / 387.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=151): time 0.00802/0.07212, allocations: 6.515 MB / 394.3 MB, free: 9.293 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.07216, allocations: 68.72 kB / 394.3 MB, free: 9.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.07401, allocations: 2.099 MB / 396.4 MB, free: 7.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.832e-05/0.07407, allocations: 53.7 kB / 396.5 MB, free: 7.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006136/0.07469, allocations: 1.405 MB / 397.9 MB, free: 5.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002586/0.07495, allocations: 0.5307 MB / 398.4 MB, free: 5.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003184/0.07526, allocations: 343.4 kB / 398.7 MB, free: 4.723 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.07533, allocations: 301.1 kB / 399 MB, free: 4.426 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008348/0.07616, allocations: 0.8783 MB / 399.9 MB, free: 3.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/0.07733, allocations: 1.366 MB / 401.3 MB, free: 1.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.07926, allocations: 2.322 MB / 403.6 MB, free: 15.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/0.07927, allocations: 8 kB / 403.6 MB, free: 15.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003334/0.08261, allocations: 3.192 MB / 406.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.08263, allocations: 12 kB / 406.8 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.08265, allocations: 12 kB / 406.8 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.08393, allocations: 0.8446 MB / 407.7 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008569/0.08479, allocations: 343.4 kB / 408 MB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/0.09581, allocations: 19.34 MB / 427.3 MB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.09687, allocations: 99.94 kB / 427.4 MB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.364e-05/0.09696, allocations: 83.97 kB / 427.5 MB, free: 6.184 MB / 394.7 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.001515/0.09847, allocations: 0.9382 MB / 428.5 MB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004314/0.09891, allocations: 226.6 kB / 428.7 MB, free: 5.012 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.102, allocations: 2.546 MB / 431.2 MB, free: 2.426 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.102, allocations: 16 kB / 431.2 MB, free: 2.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.102, allocations: 4 kB / 431.2 MB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.102, allocations: 7.969 kB / 431.3 MB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006661/0.1086, allocations: 5.473 MB / 436.7 MB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.1087, allocations: 4 kB / 436.7 MB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004401/0.1091, allocations: 199.7 kB / 436.9 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.1103, allocations: 0.7385 MB / 437.7 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.1104, allocations: 35.94 kB / 437.7 MB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1679/0.2783, allocations: 17.02 MB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.2783, allocations: 5.203 kB / 454.7 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.2821, allocations: 3.716 MB / 458.4 MB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009511/0.283, allocations: 418.9 kB / 458.9 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/0.2832, allocations: 38.98 kB / 458.9 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.2838, allocations: 104 kB / 459 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.2841, allocations: 147.9 kB / 459.1 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.603e-05/0.2842, allocations: 49.94 kB / 459.2 MB, free: 105.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001265/0.2854, allocations: 1.401 MB / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2854, allocations: 0.875 kB / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00173/0.2872, allocations: 0.6559 MB / 461.2 MB, free: 105.3 MB / 410.7 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.003584/0.2907, allocations: 4.36 MB / 465.6 MB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.2936, allocations: 3.368 MB / 469 MB, free: 99.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.2936, allocations: 0 / 469 MB, free: 99.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.295, allocations: 2.148 MB / 471.1 MB, free: 97.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/0.2971, allocations: 0.6843 MB / 471.8 MB, free: 96.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/0.3197, allocations: 22.5 MB / 494.3 MB, free: 74.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009915/0.3207, allocations: 1.734 MB / 496 MB, free: 72.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009187/0.3216, allocations: 0.4942 MB / 496.5 MB, free: 72.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.3223, allocations: 1.086 MB / 497.6 MB, free: 71.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/0.3223, allocations: 0 / 497.6 MB, free: 71.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07812/0.4004, allocations: 64.05 MB / 0.5485 GB, free: 7.949 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.896/9.297, allocations: 4 kB / 0.5485 GB, free: 7.945 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.095101187005639] 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'] 9.418534793891013 9.429236589 9.395171988 Calling exit ...