Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001485/0.001485, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001648/0.001648, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.374/1.374, allocations: 230.6 MB / 258.3 MB, free: 7.809 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+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.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 43.94 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2283, allocations: 53.38 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003792/0.2321, allocations: 2.141 MB / 434 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.2335, allocations: 0.7207 MB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.2336, allocations: 7.938 kB / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.2337, allocations: 43.58 kB / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.234, allocations: 87.27 kB / 434.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.2343, allocations: 111.8 kB / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.2346, allocations: 298.6 kB / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.2348, allocations: 50.67 kB / 435.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.2349, allocations: 115.5 kB / 435.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.235, allocations: 115.5 kB / 435.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.2351, allocations: 20 kB / 435.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.091e-05/0.2351, allocations: 24 kB / 435.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.2352, allocations: 47.84 kB / 435.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.2353, allocations: 107.5 kB / 435.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.2356, allocations: 262.9 kB / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2356, allocations: 0 / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2356, allocations: 4 kB / 436 MB, free: 2.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2356, allocations: 0 / 436 MB, free: 2.516 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007569/0.2363, allocations: 465.5 kB / 436.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2364, allocations: 8.031 kB / 436.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.025e-05/0.2364, allocations: 12.62 kB / 436.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.033e-05/0.2365, allocations: 54.72 kB / 436.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.2365, allocations: 32.75 kB / 436.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2369, allocations: 198.8 kB / 436.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.2369, allocations: 12.81 kB / 436.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.2369, allocations: 24.38 kB / 436.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.2374, allocations: 238.6 kB / 437 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.2374, allocations: 7.953 kB / 437 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.2374, allocations: 12 kB / 437 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.2374, allocations: 8 kB / 437 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.2378, allocations: 139.8 kB / 437.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.2391, allocations: 0.9386 MB / 438.1 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.2396, allocations: 214.3 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.2397, allocations: 67.48 kB / 438.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.2397, allocations: 0 / 438.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.2398, allocations: 46.44 kB / 438.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.422e-06/0.2398, allocations: 0 / 438.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005719/0.2404, allocations: 193.4 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.2404, allocations: 132.5 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.2407, allocations: 195.8 kB / 438.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.2407, allocations: 29.7 kB / 439 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.2408, allocations: 168.2 kB / 439.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.2408, allocations: 75.33 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.662e-05/0.2409, allocations: 53.66 kB / 439.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2411, allocations: 326.8 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.2412, allocations: 63.89 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.2414, allocations: 153.7 kB / 439.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003728/0.2418, allocations: 245.5 kB / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.2418, allocations: 0 / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004666/0.2423, allocations: 253.4 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2423, allocations: 8 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2423, allocations: 4 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.2423, allocations: 4 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.2426, allocations: 71.91 kB / 440.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.2426, allocations: 11.92 kB / 440.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.2428, allocations: 32.16 kB / 440.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.2428, allocations: 16 kB / 440.4 MB, free: 13.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.2429, allocations: 133.8 kB / 440.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.415e-05/0.243, allocations: 27.83 kB / 440.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.243, allocations: 21.03 kB / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2431, allocations: 0 / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.2431, allocations: 4 kB / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2431, allocations: 0 / 440.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004372/0.2435, allocations: 228.5 kB / 440.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2435, allocations: 4 kB / 440.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.2438, allocations: 63.84 kB / 440.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.2438, allocations: 4.688 kB / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.2438, allocations: 4 kB / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2438, allocations: 0 / 440.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2438, allocations: 4 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006052/0.2444, allocations: 0.5244 MB / 441.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.481e-05/0.2445, allocations: 20.02 kB / 441.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.2445, allocations: 7.984 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2447, allocations: 8 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.2447, allocations: 19.97 kB / 441.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.2448, allocations: 4 kB / 441.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.2449, allocations: 140.5 kB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2449, allocations: 0 / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000444/0.2453, allocations: 63.84 kB / 441.7 MB, free: 12.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008975/0.2462, allocations: 1.066 MB / 442.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.2466, allocations: 151.9 kB / 442.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2466, allocations: 4 kB / 442.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.2468, allocations: 67.83 kB / 443 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.2474, allocations: 50.78 kB / 443 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.2514, allocations: 3.065 MB / 446.1 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.2515, allocations: 142.1 kB / 446.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.708e-05/0.2516, allocations: 26.28 kB / 446.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.2517, allocations: 71.41 kB / 446.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2517, allocations: 0 / 446.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.2782, allocations: 5.12 MB / 451.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.41, allocations: 15.36 kB / 451.5 MB, free: 2.543 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.840206791996025] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 11.569555024965666 11.596528242 11.356064573 Calling exit ...