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.001277/0.001277, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001356/0.001356, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001461/0.001461, allocations: 55.92 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2278, allocations: 53.35 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003248/0.2311, allocations: 2.313 MB / 434.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.2324, allocations: 0.7673 MB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2325, allocations: 7.938 kB / 435 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.2327, allocations: 43.58 kB / 435 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002517/0.2329, allocations: 87.33 kB / 435.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.2332, allocations: 111.7 kB / 435.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.2336, allocations: 294.7 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.2337, allocations: 44.56 kB / 435.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.2338, allocations: 111.6 kB / 435.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.234, allocations: 123.4 kB / 435.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.234, allocations: 20 kB / 435.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.587e-05/0.2341, allocations: 20 kB / 435.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.587e-05/0.2341, allocations: 47.84 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2342, allocations: 131.3 kB / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.2345, allocations: 263.3 kB / 436.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2345, allocations: 4 kB / 436.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2345, allocations: 4 kB / 436.3 MB, free: 2.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2346, allocations: 0 / 436.3 MB, free: 2.492 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.0007576/0.2353, allocations: 457.5 kB / 436.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2353, allocations: 11.97 kB / 436.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.004e-05/0.2354, allocations: 8.625 kB / 436.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.381e-05/0.2354, allocations: 54.72 kB / 436.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.024e-05/0.2355, allocations: 36.75 kB / 436.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.2358, allocations: 198.8 kB / 437 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.2358, allocations: 16.81 kB / 437 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.2359, allocations: 20.38 kB / 437.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.2363, allocations: 238.6 kB / 437.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.2363, allocations: 7.953 kB / 437.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.2363, allocations: 12 kB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2364, allocations: 4 kB / 437.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003397/0.2367, allocations: 139.8 kB / 437.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.238, allocations: 0.997 MB / 438.4 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004471/0.2385, allocations: 206.3 kB / 438.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.2386, allocations: 63.48 kB / 438.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.2386, allocations: 4 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.2387, allocations: 38.5 kB / 438.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.2387, allocations: 0 / 438.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005388/0.2392, allocations: 198.1 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.2393, allocations: 136.5 kB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.2395, allocations: 195.8 kB / 439.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.2395, allocations: 25.7 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.2396, allocations: 168.2 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.167e-05/0.2396, allocations: 63.44 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-05/0.2397, allocations: 65.58 kB / 439.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2399, allocations: 330.8 kB / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.24, allocations: 51.95 kB / 440 MB, free: 14.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.2402, allocations: 157.7 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.2406, allocations: 245.5 kB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2406, allocations: 0 / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004688/0.2411, allocations: 257.3 kB / 440.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2411, allocations: 8.375 kB / 440.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2411, allocations: 11.98 kB / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.2411, allocations: 4 kB / 440.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.2414, allocations: 67.91 kB / 440.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.2414, allocations: 7.938 kB / 440.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.2415, allocations: 35.77 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.2415, allocations: 8 kB / 440.7 MB, free: 13.62 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.0001218/0.2417, allocations: 141.7 kB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.757e-05/0.2418, allocations: 19.84 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.869e-05/0.2418, allocations: 29.02 kB / 440.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2418, allocations: 0 / 440.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2418, allocations: 4 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2418, allocations: 0 / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.2422, allocations: 248.5 kB / 441.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2423, allocations: 4 kB / 441.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.2425, allocations: 55.84 kB / 441.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2425, allocations: 0 / 441.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.2425, allocations: 8 kB / 441.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2425, allocations: 0 / 441.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.2426, allocations: 8 kB / 441.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005754/0.2431, allocations: 0.526 MB / 441.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.2432, allocations: 11.91 kB / 441.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.2432, allocations: 11.94 kB / 441.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.2434, allocations: 15.92 kB / 441.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/0.2434, allocations: 11.98 kB / 441.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.2435, allocations: 7.984 kB / 441.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.2436, allocations: 136.4 kB / 442 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2436, allocations: 0 / 442 MB, free: 12.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.244, allocations: 67.84 kB / 442 MB, free: 12.26 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.0008412/0.2448, allocations: 1.069 MB / 443.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003595/0.2452, allocations: 152.6 kB / 443.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2452, allocations: 0 / 443.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.2453, allocations: 63.91 kB / 443.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006652/0.246, allocations: 63.44 kB / 443.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/0.2497, allocations: 3.064 MB / 446.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.25, allocations: 0.748 MB / 447.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.425e-05/0.2501, allocations: 22.3 kB / 447.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.2502, allocations: 71.41 kB / 447.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2502, allocations: 4 kB / 447.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.2766, allocations: 4.994 MB / 452.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.28, allocations: 12 kB / 452.3 MB, free: 1.941 MB / 350.1 MB " [Timeout remaining time 649] (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.697718316980172] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 11.437467560986988 11.464461342 11.224917589 Calling exit ...