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.001296/0.001296, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001474/0.001474, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 8.023 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 47.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2402, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003552/0.2437, allocations: 2.3 MB / 433.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2451, allocations: 0.7673 MB / 434.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.2452, allocations: 7.938 kB / 434.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2453, allocations: 43.58 kB / 434.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.2456, allocations: 95.31 kB / 434.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.2459, allocations: 107.8 kB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.2463, allocations: 290.7 kB / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.2464, allocations: 48.56 kB / 434.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.2465, allocations: 115.5 kB / 434.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.2467, allocations: 115.5 kB / 435 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.2467, allocations: 20 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.719e-05/0.2468, allocations: 20 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.959e-05/0.2468, allocations: 51.77 kB / 435.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.247, allocations: 131.3 kB / 435.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.2473, allocations: 264.6 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2473, allocations: 0 / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2473, allocations: 0 / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2473, allocations: 0 / 435.5 MB, free: 2.488 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.0007506/0.248, allocations: 465.5 kB / 435.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2481, allocations: 12.03 kB / 435.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.401e-05/0.2481, allocations: 58.72 kB / 436 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.2482, allocations: 32.75 kB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.2485, allocations: 198.8 kB / 436.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2485, allocations: 16.81 kB / 436.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.075e-05/0.2486, allocations: 20.38 kB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004086/0.249, allocations: 242.8 kB / 436.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.249, allocations: 3.953 kB / 436.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.249, allocations: 15.98 kB / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.249, allocations: 4 kB / 436.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003252/0.2494, allocations: 143.8 kB / 436.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.2508, allocations: 0.9815 MB / 437.6 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004563/0.2512, allocations: 206.3 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.2514, allocations: 63.48 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.2514, allocations: 7.938 kB / 437.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.2514, allocations: 42.44 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.2514, allocations: 4 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000553/0.252, allocations: 194.1 kB / 438.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.252, allocations: 136.5 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.2522, allocations: 195.8 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2522, allocations: 25.7 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2524, allocations: 172.2 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.302e-05/0.2524, allocations: 71.41 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.411e-05/0.2525, allocations: 61.66 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.2526, allocations: 326.8 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.2528, allocations: 55.95 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.253, allocations: 153.7 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.2534, allocations: 249.5 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2534, allocations: 0 / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004581/0.2538, allocations: 245.6 kB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.2538, allocations: 15.94 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2539, allocations: 4 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.2539, allocations: 4.25 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.2541, allocations: 67.91 kB / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.2542, allocations: 15.92 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.2543, allocations: 31.78 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.2543, allocations: 8 kB / 440 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.0001198/0.2544, allocations: 137.8 kB / 440.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.949e-05/0.2545, allocations: 23.84 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.199e-05/0.2546, allocations: 29.02 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2546, allocations: 0 / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2546, allocations: 4 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2546, allocations: 0 / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.255, allocations: 244.5 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.255, allocations: 4 kB / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002763/0.2553, allocations: 51.91 kB / 440.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.2553, allocations: 3.938 kB / 440.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.2553, allocations: 8 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2554, allocations: 4 kB / 440.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2554, allocations: 4 kB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.2559, allocations: 0.5221 MB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.383e-05/0.256, allocations: 15.97 kB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.256, allocations: 12 kB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.2562, allocations: 7.984 kB / 441 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.2563, allocations: 15.92 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.2563, allocations: 7.984 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.2564, allocations: 136.4 kB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2564, allocations: 0 / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.2568, allocations: 71.83 kB / 441.2 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.0008864/0.2577, allocations: 1.067 MB / 442.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003635/0.2581, allocations: 151.7 kB / 442.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2581, allocations: 0 / 442.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001495/0.2582, allocations: 67.84 kB / 442.5 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.0006737/0.2589, allocations: 59.73 kB / 442.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.2629, allocations: 3.068 MB / 445.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.2633, allocations: 0.7518 MB / 446.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.2634, allocations: 18.3 kB / 446.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2635, allocations: 75.41 kB / 446.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2635, allocations: 0 / 446.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.2948, allocations: 4.972 MB / 451.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.43, allocations: 4.062 kB / 451.5 MB, free: 1.961 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.031378011997731]