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.001423/0.001423, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001711/0.001711, allocations: 214.9 kB / 23.73 MB, free: 4.16 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.432/1.432, allocations: 230.5 MB / 257.4 MB, free: 7.809 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 59.89 kB / 377.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2657, allocations: 53.41 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003824/0.2695, allocations: 2.153 MB / 433.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2708, allocations: 0.7206 MB / 434 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.2709, allocations: 11.88 kB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.2711, allocations: 39.64 kB / 434 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.2713, allocations: 91.31 kB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.2717, allocations: 103.8 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.272, allocations: 302.6 kB / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2722, allocations: 44.56 kB / 434.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.2723, allocations: 115.6 kB / 434.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.2725, allocations: 99.48 kB / 434.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.2725, allocations: 20 kB / 434.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.233e-05/0.2725, allocations: 20 kB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.2726, allocations: 51.77 kB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.2727, allocations: 103.5 kB / 435 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.273, allocations: 268.6 kB / 435.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.273, allocations: 0 / 435.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.273, allocations: 0 / 435.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.273, allocations: 7.938 kB / 435.2 MB, free: 2.332 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.0007924/0.2738, allocations: 465.5 kB / 435.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2739, allocations: 15.98 kB / 435.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/0.2739, allocations: 54.72 kB / 435.8 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.274, allocations: 32.75 kB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.2744, allocations: 194.8 kB / 436 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.2744, allocations: 12.81 kB / 436 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.2744, allocations: 28.31 kB / 436 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.2749, allocations: 242.8 kB / 436.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.2749, allocations: 7.953 kB / 436.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.275, allocations: 8 kB / 436.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.275, allocations: 8 kB / 436.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.2753, allocations: 135.8 kB / 436.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.2768, allocations: 0.9464 MB / 437.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.2773, allocations: 206.4 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.2774, allocations: 59.45 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2774, allocations: 4 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.2775, allocations: 46.44 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.303e-06/0.2775, allocations: 0 / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000555/0.278, allocations: 197.5 kB / 437.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.543e-05/0.2781, allocations: 132.5 kB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.2783, allocations: 203.1 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.2783, allocations: 25.7 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.2785, allocations: 172.2 kB / 438.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.2785, allocations: 71.41 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.805e-05/0.2786, allocations: 53.7 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2788, allocations: 330.8 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.2789, allocations: 63.95 kB / 438.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.2792, allocations: 153.6 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/0.2796, allocations: 237.5 kB / 439.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2796, allocations: 8 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004974/0.2801, allocations: 257.2 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2801, allocations: 10.44 kB / 439.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2801, allocations: 4 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.2801, allocations: 12.31 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.2804, allocations: 71.91 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.2804, allocations: 7.984 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.2805, allocations: 19.89 kB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.2806, allocations: 16 kB / 439.7 MB, free: 13.5 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.000149/0.2807, allocations: 138.6 kB / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.545e-05/0.2808, allocations: 23.8 kB / 439.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.2809, allocations: 25.02 kB / 439.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.2809, allocations: 4 kB / 439.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.2809, allocations: 0 / 439.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2809, allocations: 8 kB / 439.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004637/0.2813, allocations: 220.7 kB / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2813, allocations: 0 / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.2816, allocations: 55.91 kB / 440.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.2816, allocations: 7.938 kB / 440.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2817, allocations: 4 kB / 440.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2817, allocations: 0 / 440.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2817, allocations: 0 / 440.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006578/0.2823, allocations: 0.5306 MB / 440.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.492e-05/0.2824, allocations: 31.86 kB / 440.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.2824, allocations: 7.984 kB / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.2826, allocations: 8 kB / 440.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.2827, allocations: 11.98 kB / 440.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2827, allocations: 7.984 kB / 440.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.2828, allocations: 140.5 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2828, allocations: 0 / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004628/0.2833, allocations: 59.89 kB / 441 MB, free: 12.17 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.0009687/0.2843, allocations: 1.069 MB / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003837/0.2846, allocations: 152.1 kB / 442.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2846, allocations: 0 / 442.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.2848, allocations: 64.12 kB / 442.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.2855, allocations: 68.91 kB / 442.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00416/0.2897, allocations: 3.06 MB / 445.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.2898, allocations: 138.2 kB / 445.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.2899, allocations: 18.3 kB / 445.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.2901, allocations: 71.41 kB / 445.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2901, allocations: 0 / 445.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0379/0.328, allocations: 5.427 MB / 451 MB, free: 2.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.46, allocations: 8.625 kB / 451 MB, free: 2.02 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.203585232142359]