Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 230.5 MB / 258.2 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 64.12 kB / 378.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2368, allocations: 53.41 MB / 432 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003439/0.2402, allocations: 2.296 MB / 434.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.2415, allocations: 0.7789 MB / 435 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.633e-05/0.2416, allocations: 7.938 kB / 435 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.2417, allocations: 31.66 kB / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.2419, allocations: 91.25 kB / 435.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.2422, allocations: 115.8 kB / 435.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000332/0.2425, allocations: 298.6 kB / 435.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.2426, allocations: 40.58 kB / 435.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.2428, allocations: 115.6 kB / 435.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.2429, allocations: 119.5 kB / 435.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.243, allocations: 20 kB / 435.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.243, allocations: 20 kB / 435.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.856e-05/0.2431, allocations: 55.72 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.2432, allocations: 127.4 kB / 436.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.2435, allocations: 263.7 kB / 436.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2435, allocations: 4 kB / 436.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2435, allocations: 0 / 436.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2435, allocations: 0 / 436.3 MB, free: 2.305 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.0007242/0.2442, allocations: 457.5 kB / 436.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2442, allocations: 12.03 kB / 436.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.729e-05/0.2443, allocations: 4.625 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.355e-05/0.2443, allocations: 58.73 kB / 436.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.2444, allocations: 32.75 kB / 436.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.2447, allocations: 198.8 kB / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.2447, allocations: 12.81 kB / 437.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.2447, allocations: 28.36 kB / 437.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.2451, allocations: 234.6 kB / 437.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.2452, allocations: 11.95 kB / 437.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.2452, allocations: 8 kB / 437.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2452, allocations: 8 kB / 437.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003268/0.2455, allocations: 135.8 kB / 437.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.2469, allocations: 0.9892 MB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000451/0.2474, allocations: 202.4 kB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.2475, allocations: 67.44 kB / 438.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2475, allocations: 7.938 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.2476, allocations: 34.5 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.422e-06/0.2476, allocations: 4 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005537/0.2481, allocations: 197.4 kB / 439 MB, free: 15.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.783e-05/0.2482, allocations: 132.5 kB / 439.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.2484, allocations: 191.2 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2484, allocations: 29.7 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.2486, allocations: 180.1 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.713e-05/0.2486, allocations: 67.44 kB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.2487, allocations: 53.66 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2488, allocations: 330.8 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.249, allocations: 59.95 kB / 440 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.2492, allocations: 161.6 kB / 440.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.2496, allocations: 233.5 kB / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2496, allocations: 0 / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004694/0.2501, allocations: 261.4 kB / 440.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2501, allocations: 12.03 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.2501, allocations: 4 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2501, allocations: 4 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.2504, allocations: 63.91 kB / 440.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.2504, allocations: 8 kB / 440.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.2505, allocations: 31.77 kB / 440.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.2505, allocations: 16 kB / 440.8 MB, free: 13.44 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.0001318/0.2507, allocations: 129.8 kB / 440.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.049e-05/0.2508, allocations: 27.84 kB / 440.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.939e-05/0.2508, allocations: 25.02 kB / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2508, allocations: 7.938 kB / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2508, allocations: 256 / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2508, allocations: 0 / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.2513, allocations: 252.5 kB / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2513, allocations: 0 / 441.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.2515, allocations: 55.89 kB / 441.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2515, allocations: 0 / 441.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2516, allocations: 8 kB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2516, allocations: 4 kB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2516, allocations: 4 kB / 441.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005945/0.2522, allocations: 0.5309 MB / 441.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.2522, allocations: 12.03 kB / 441.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.2522, allocations: 4 kB / 441.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.2524, allocations: 12 kB / 441.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.2525, allocations: 15.91 kB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.2525, allocations: 8 kB / 441.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.2526, allocations: 140.5 kB / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2526, allocations: 0 / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004217/0.253, allocations: 63.84 kB / 442.1 MB, free: 12.09 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.0008683/0.2539, allocations: 1.068 MB / 443.1 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.2542, allocations: 159.8 kB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2542, allocations: 3.938 kB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.2544, allocations: 59.91 kB / 443.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006428/0.255, allocations: 51.47 kB / 443.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003849/0.2589, allocations: 3.069 MB / 446.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004321/0.2593, allocations: 0.748 MB / 447.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.222e-05/0.2594, allocations: 26.27 kB / 447.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2595, allocations: 79.41 kB / 447.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2595, allocations: 0 / 447.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.2865, allocations: 4.997 MB / 452.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.18, allocations: 15.28 kB / 452.3 MB, free: 1.738 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.586061824986245] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 11.334934228041675 11.351791531 11.104905591 Calling exit ...