Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.001047/0.001047, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.9209/0.9209, allocations: 177.1 MB / 199.4 MB, free: 5.941 MB / 186.7 MB " [Timeout remaining time 179] 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.001066/0.001066, allocations: 156.6 kB / 256 MB, free: 13.35 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02211/0.02211, allocations: 6.665 MB / 319 MB, free: 26.76 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.598e-05/2.784e-05, allocations: 2.281 kB / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00297/0.002998, allocations: 2.712 MB / 448.1 MB, free: 34.92 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.004037, allocations: 0.6699 MB / 448.8 MB, free: 34.24 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.004227, allocations: 4 kB / 448.8 MB, free: 34.24 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.004391, allocations: 51.45 kB / 448.8 MB, free: 34.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.00468, allocations: 103.1 kB / 448.9 MB, free: 34.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.004872, allocations: 83.89 kB / 449 MB, free: 34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.005198, allocations: 402 kB / 449.4 MB, free: 33.61 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.005391, allocations: 93.06 kB / 449.5 MB, free: 33.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.005596, allocations: 215.6 kB / 449.7 MB, free: 33.3 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.005703, allocations: 107.7 kB / 449.8 MB, free: 33.2 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.005742, allocations: 36 kB / 449.8 MB, free: 33.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.742e-05/0.005769, allocations: 36 kB / 449.9 MB, free: 33.13 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.889e-05/0.005808, allocations: 75.69 kB / 449.9 MB, free: 33.05 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.005877, allocations: 119.7 kB / 450.1 MB, free: 32.94 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003062/0.006183, allocations: 430.6 kB / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.006189, allocations: 0 / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.00619, allocations: 0 / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.0062, allocations: 4 kB / 450.5 MB, free: 32.51 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007423/0.006942, allocations: 0.517 MB / 451 MB, free: 31.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.006987, allocations: 15.98 kB / 451 MB, free: 31.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.007029, allocations: 62.73 kB / 451.1 MB, free: 31.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/0.007077, allocations: 36.73 kB / 451.1 MB, free: 31.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.007414, allocations: 213.2 kB / 451.3 MB, free: 31.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.00743, allocations: 29.03 kB / 451.3 MB, free: 31.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.007463, allocations: 28.38 kB / 451.4 MB, free: 31.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.007805, allocations: 296.3 kB / 451.7 MB, free: 31.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.00782, allocations: 4.141 kB / 451.7 MB, free: 31.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.007841, allocations: 15.94 kB / 451.7 MB, free: 31.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.007847, allocations: 4 kB / 451.7 MB, free: 31.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.008109, allocations: 210.5 kB / 451.9 MB, free: 31.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009804/0.009089, allocations: 0.8878 MB / 452.8 MB, free: 30.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.009355, allocations: 146.5 kB / 452.9 MB, free: 29.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.289e-05/0.009448, allocations: 68.83 kB / 453 MB, free: 29.85 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.009468, allocations: 11.94 kB / 453 MB, free: 29.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.009484, allocations: 30.56 kB / 453 MB, free: 29.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.009486, allocations: 0 / 453 MB, free: 29.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008553/0.01034, allocations: 0.5354 MB / 453.6 MB, free: 29.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.88e-05/0.01036, allocations: 55.41 kB / 453.6 MB, free: 29.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.01047, allocations: 206.5 kB / 453.8 MB, free: 28.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.01047, allocations: 29.7 kB / 453.9 MB, free: 28.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.313e-05/0.01053, allocations: 180.5 kB / 454 MB, free: 28.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.01055, allocations: 75.39 kB / 454.1 MB, free: 28.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.01059, allocations: 37.67 kB / 454.1 MB, free: 28.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.688e-05/0.01063, allocations: 326.8 kB / 454.5 MB, free: 28.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.01073, allocations: 59.97 kB / 454.5 MB, free: 28.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.881e-05/0.01082, allocations: 100.1 kB / 454.6 MB, free: 28.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.01099, allocations: 170.8 kB / 454.8 MB, free: 27.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01099, allocations: 0 / 454.8 MB, free: 27.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002607/0.01125, allocations: 234.2 kB / 455 MB, free: 27.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.01127, allocations: 12 kB / 455 MB, free: 27.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.01128, allocations: 3.984 kB / 455 MB, free: 27.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001321/0.01141, allocations: 24.84 kB / 455 MB, free: 27.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.01152, allocations: 51.91 kB / 455.1 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005396/0.01206, allocations: 1.267 MB / 456.4 MB, free: 26.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.034e-05/0.01213, allocations: 16.09 kB / 456.4 MB, free: 26.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.01214, allocations: 4 kB / 456.4 MB, free: 26.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.186e-05/0.01222, allocations: 137.8 kB / 456.5 MB, free: 26.06 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.219e-05/0.01225, allocations: 19.91 kB / 456.5 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.01227, allocations: 29.73 kB / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.01227, allocations: 0 / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.01228, allocations: 0 / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.01228, allocations: 0 / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.01274, allocations: 0.5585 MB / 457.1 MB, free: 25.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01274, allocations: 0 / 457.1 MB, free: 25.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.01284, allocations: 35.97 kB / 457.2 MB, free: 25.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.033e-05/0.01289, allocations: 24.8 kB / 457.2 MB, free: 25.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.0129, allocations: 4 kB / 457.2 MB, free: 25.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003656/0.01327, allocations: 1.264 MB / 458.5 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01327, allocations: 7.938 kB / 458.5 MB, free: 23.94 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.01356, allocations: 376.6 kB / 458.8 MB, free: 23.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.168e-05/0.01358, allocations: 19.84 kB / 458.8 MB, free: 23.54 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.01359, allocations: 4 kB / 458.9 MB, free: 23.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.51e-05/0.01367, allocations: 20.19 kB / 458.9 MB, free: 23.51 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.01371, allocations: 11.92 kB / 458.9 MB, free: 23.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.01372, allocations: 11.98 kB / 458.9 MB, free: 23.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.8e-05/0.01379, allocations: 144.2 kB / 459 MB, free: 23.35 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01379, allocations: 0 / 459 MB, free: 23.35 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002148/0.014, allocations: 52 kB / 459.1 MB, free: 23.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,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.0004109/0.01441, allocations: 0.9021 MB / 460 MB, free: 22.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.01476, allocations: 260.6 kB / 460.2 MB, free: 22.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.01477, allocations: 0 / 460.2 MB, free: 22.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.01488, allocations: 198.9 kB / 460.4 MB, free: 21.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.01517, allocations: 32.14 kB / 460.5 MB, free: 21.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.01692, allocations: 2.484 MB / 463 MB, free: 19.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.021e-05/0.017, allocations: 150.5 kB / 463.1 MB, free: 19.08 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.44e-05/0.01707, allocations: 25.62 kB / 463.1 MB, free: 19.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.01714, allocations: 80.47 kB / 463.2 MB, free: 18.98 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01714, allocations: 0 / 463.2 MB, free: 18.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.03907, allocations: 5.519 MB / 468.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.354, allocations: 6.078 kB / 468.7 MB, free: 13.61 MB / 330.7 MB " [Timeout remaining time 653] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.368661263026297] Failed to read output from testmodel.py, exit status != 0: 7.4390427535399795 7.446786889 7.438266151 Calling exit ...