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.001877/0.001877, 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 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.002455/0.002455, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001744/0.001744, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.244, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003381/0.2474, allocations: 2.16 MB / 433.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.2487, allocations: 0.7129 MB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.2489, allocations: 7.938 kB / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.249, allocations: 35.66 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.2492, allocations: 91.31 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.2496, allocations: 107.7 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.2499, allocations: 306.6 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.25, allocations: 36.58 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.2502, allocations: 123.6 kB / 434.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.2503, allocations: 103.5 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.2504, allocations: 20 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.187e-05/0.2504, allocations: 20 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.394e-05/0.2505, allocations: 51.78 kB / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.2506, allocations: 103.5 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.2509, allocations: 268.6 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2509, allocations: 0 / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2509, allocations: 0 / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2509, allocations: 0 / 435.2 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.0007717/0.2516, allocations: 469.5 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2517, allocations: 8.031 kB / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.418e-05/0.2517, allocations: 58.72 kB / 435.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.164e-05/0.2518, allocations: 28.75 kB / 435.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.2521, allocations: 198.8 kB / 435.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.2522, allocations: 16.81 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.2522, allocations: 28.31 kB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.2526, allocations: 238.8 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.2527, allocations: 3.953 kB / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.2527, allocations: 12 kB / 436.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2527, allocations: 4 kB / 436.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.253, allocations: 139.8 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.2544, allocations: 0.9425 MB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004632/0.2549, allocations: 210.3 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.255, allocations: 67.47 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.255, allocations: 0 / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.2551, allocations: 50.38 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.944e-06/0.2551, allocations: 0 / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005451/0.2556, allocations: 197.4 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/0.2557, allocations: 128.5 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.2559, allocations: 199.7 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2559, allocations: 33.7 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.256, allocations: 172.2 kB / 438.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.2561, allocations: 67.42 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.2561, allocations: 53.69 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2563, allocations: 326.8 kB / 438.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.2564, allocations: 59.95 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2566, allocations: 161.6 kB / 439 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.257, allocations: 237.5 kB / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.257, allocations: 0 / 439.2 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004886/0.2575, allocations: 257.2 kB / 439.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2575, allocations: 11.94 kB / 439.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2575, allocations: 7.938 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.2575, allocations: 4 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.2578, allocations: 64.28 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.2578, allocations: 12.25 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.258, allocations: 23.88 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.258, allocations: 20 kB / 439.6 MB, free: 13.66 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.0001261/0.2581, allocations: 133.7 kB / 439.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.018e-05/0.2582, allocations: 27.8 kB / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.198e-05/0.2583, allocations: 25.02 kB / 439.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2583, allocations: 4 kB / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2583, allocations: 0 / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2583, allocations: 0 / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004715/0.2588, allocations: 228.7 kB / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2588, allocations: 0 / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002885/0.2591, allocations: 55.91 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.2591, allocations: 3.938 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.2591, allocations: 4 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2591, allocations: 0 / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2591, allocations: 4 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006215/0.2597, allocations: 0.5251 MB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.2597, allocations: 31.86 kB / 440.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.2598, allocations: 8 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.26, allocations: 11.98 kB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.812e-05/0.2601, allocations: 11.92 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.2601, allocations: 7.984 kB / 440.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.2602, allocations: 136.5 kB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2602, allocations: 0 / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004481/0.2606, allocations: 59.89 kB / 440.9 MB, free: 12.33 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.0009333/0.2616, allocations: 1.071 MB / 442 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003759/0.262, allocations: 159.7 kB / 442.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.262, allocations: 3.938 kB / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.2621, allocations: 59.91 kB / 442.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006886/0.2628, allocations: 55.52 kB / 442.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/0.2668, allocations: 3.064 MB / 445.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.267, allocations: 134.2 kB / 445.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.2671, allocations: 30.28 kB / 445.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2672, allocations: 71.41 kB / 445.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2672, allocations: 0 / 445.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.3021, allocations: 5.43 MB / 451 MB, free: 2.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.48, allocations: 2.234 kB / 451 MB, free: 2.199 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.215388619806617]