Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008233/0.0008233, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008125/0.0008125, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8823/0.8823, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_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_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.74e-05/1.879e-05, allocations: 2.281 kB / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007904/0.007923, allocations: 10.02 MB / 328.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005207/0.01313, allocations: 3.365 MB / 331.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001091/0.01422, allocations: 83.44 kB / 331.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.01575, allocations: 0.8422 MB / 332.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.01777, allocations: 1.009 MB / 333.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007114/0.01848, allocations: 451.2 kB / 334.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003145/0.02163, allocations: 3.867 MB / 338.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.02331, allocations: 1.538 MB / 339.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.0261, allocations: 2.464 MB / 342.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.02779, allocations: 1.746 MB / 343.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004262/0.02821, allocations: 416 kB / 344.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006734/0.02889, allocations: 0.4958 MB / 344.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007813/0.02967, allocations: 1.25 MB / 346 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001414/0.03108, allocations: 1.337 MB / 347.3 MB, free: 9.305 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.03548, allocations: 5.624 MB / 352.9 MB, free: 3.664 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.03549, allocations: 0 / 352.9 MB, free: 3.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.03549, allocations: 4 kB / 352.9 MB, free: 3.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.03561, allocations: 0 / 352.9 MB, free: 3.66 MB / 314.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.005296/0.04091, allocations: 3.793 MB / 356.7 MB, free: 15.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.04096, allocations: 8.922 kB / 356.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003801/0.04134, allocations: 413 kB / 357.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006439/0.04198, allocations: 410.5 kB / 357.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002426/0.04441, allocations: 1.996 MB / 359.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.04451, allocations: 214.1 kB / 359.8 MB, free: 12.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002614/0.04478, allocations: 284.4 kB / 360 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004302/0.04908, allocations: 4.17 MB / 364.2 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.524e-05/0.04913, allocations: 11.94 kB / 364.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001741/0.04931, allocations: 116 kB / 364.3 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.648e-05/0.04939, allocations: 129.4 kB / 364.5 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003964/0.05336, allocations: 3.242 MB / 367.7 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0135/0.06685, allocations: 10.77 MB / 378.5 MB, free: 9.535 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.06862, allocations: 1.735 MB / 380.2 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.06994, allocations: 1.157 MB / 381.4 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001646/0.0701, allocations: 55.08 kB / 381.4 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.07014, allocations: 47.88 kB / 381.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.035e-06/0.07015, allocations: 0 / 381.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.009368/0.07951, allocations: 6.505 MB / 388 MB, free: 12 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.07957, allocations: 68.72 kB / 388 MB, free: 15.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.08192, allocations: 2.091 MB / 390.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.08205, allocations: 53.7 kB / 390.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007797/0.08283, allocations: 1.401 MB / 391.6 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003591/0.08318, allocations: 0.5345 MB / 392.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000382/0.08357, allocations: 347.4 kB / 392.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.495e-05/0.08365, allocations: 301.1 kB / 392.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.08466, allocations: 0.8744 MB / 393.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.08588, allocations: 1.369 MB / 395 MB, free: 8.691 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00216/0.08804, allocations: 2.318 MB / 397.3 MB, free: 6.168 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.08805, allocations: 8 kB / 397.3 MB, free: 6.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004003/0.09206, allocations: 3.199 MB / 400.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.09208, allocations: 10.81 kB / 400.5 MB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.0921, allocations: 19.98 kB / 400.5 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.09347, allocations: 0.8485 MB / 401.4 MB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006665/0.09413, allocations: 339.4 kB / 401.7 MB, free: 1.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.1053, allocations: 19.34 MB / 421.1 MB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.1067, allocations: 100.1 kB / 421.1 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.1068, allocations: 72 kB / 421.2 MB, free: 12.91 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.001399/0.1082, allocations: 0.9382 MB / 422.2 MB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.1085, allocations: 230.5 kB / 422.4 MB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.1113, allocations: 2.542 MB / 424.9 MB, free: 9.156 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.1113, allocations: 15.98 kB / 424.9 MB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.1113, allocations: 8 kB / 424.9 MB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.1114, allocations: 3.984 kB / 425 MB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006286/0.1176, allocations: 5.473 MB / 430.4 MB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.1176, allocations: 4 kB / 430.4 MB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/0.1181, allocations: 191.7 kB / 430.6 MB, free: 3.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.1192, allocations: 0.7424 MB / 431.4 MB, free: 2.535 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.1193, allocations: 39.92 kB / 431.4 MB, free: 2.496 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009805/0.1291, allocations: 17.04 MB / 448.4 MB, free: 308 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.1291, allocations: 4 kB / 448.4 MB, free: 304 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1591/0.2882, allocations: 3.702 MB / 452.1 MB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008298/0.2891, allocations: 426.2 kB / 452.6 MB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.2892, allocations: 35.19 kB / 452.6 MB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.2898, allocations: 109.1 kB / 452.7 MB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.29, allocations: 149.3 kB / 452.8 MB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.2901, allocations: 47.62 kB / 452.9 MB, free: 115.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001258/0.2913, allocations: 1.397 MB / 454.3 MB, free: 115.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2913, allocations: 3.25 kB / 454.3 MB, free: 115.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001793/0.2931, allocations: 0.6572 MB / 455 MB, free: 115.2 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.0036/0.2967, allocations: 4.363 MB / 459.3 MB, free: 113.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/0.2996, allocations: 3.356 MB / 462.7 MB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.2996, allocations: 0 / 462.7 MB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3009, allocations: 2.147 MB / 464.8 MB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.3028, allocations: 0.6772 MB / 465.5 MB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0219/0.3247, allocations: 22.49 MB / 488 MB, free: 86.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.3258, allocations: 1.73 MB / 489.7 MB, free: 84.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009584/0.3268, allocations: 0.4963 MB / 490.2 MB, free: 83.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007087/0.3275, allocations: 1.086 MB / 491.3 MB, free: 82.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3275, allocations: 3.938 kB / 491.3 MB, free: 82.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08522/0.4127, allocations: 63.89 MB / 0.5422 GB, free: 19.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.149/9.561, allocations: 8.891 kB / 0.5422 GB, free: 19.59 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.337535441853106] 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.681007313542068 9.688164937 9.65113463 Calling exit ...