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.001846/0.001846, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.002231/0.002231, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001572/0.001572, allocations: 48.06 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003712/0.1057, allocations: 2.292 MB / 428.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1072, allocations: 0.7635 MB / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.1073, allocations: 7.938 kB / 429.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.1075, allocations: 35.59 kB / 429.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.1078, allocations: 87.31 kB / 429.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.1081, allocations: 107.8 kB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.1085, allocations: 294.6 kB / 429.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.1086, allocations: 56.31 kB / 429.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1088, allocations: 107.6 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.109, allocations: 127.4 kB / 430.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.109, allocations: 20 kB / 430.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.933e-05/0.109, allocations: 20 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.109e-05/0.1091, allocations: 47.83 kB / 430.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1092, allocations: 127.3 kB / 430.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.1095, allocations: 266.8 kB / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1095, allocations: 0 / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1095, allocations: 0 / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1095, allocations: 0 / 430.6 MB, free: 464 kB / 350.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.1946/0.3041, allocations: 0.5199 MB / 431.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.3042, allocations: 12.41 kB / 431.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.556e-05/0.3043, allocations: 56.39 kB / 431.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.3043, allocations: 30.28 kB / 431.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.3048, allocations: 257 kB / 431.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.3048, allocations: 18.38 kB / 431.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.3049, allocations: 21.59 kB / 431.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004837/0.3053, allocations: 238.7 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.3054, allocations: 10.58 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.3054, allocations: 10.62 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3054, allocations: 5.625 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.3058, allocations: 141.3 kB / 431.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.307, allocations: 1.055 MB / 433 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.3074, allocations: 206.7 kB / 433.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.3076, allocations: 66.73 kB / 433.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.3076, allocations: 8.531 kB / 433.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.3076, allocations: 40.91 kB / 433.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.844e-06/0.3076, allocations: 0 / 433.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005529/0.3082, allocations: 192 kB / 433.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.3082, allocations: 139.2 kB / 433.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.3083, allocations: 191.3 kB / 433.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.3084, allocations: 31.42 kB / 433.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.095e-05/0.3084, allocations: 163 kB / 434 MB, free: 9.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.3085, allocations: 70.14 kB / 434.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/0.3085, allocations: 52.48 kB / 434.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.3086, allocations: 327.3 kB / 434.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.3087, allocations: 64.7 kB / 434.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.3089, allocations: 160.6 kB / 434.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.3092, allocations: 238.5 kB / 434.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3092, allocations: 3.688 kB / 434.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000459/0.3097, allocations: 252.8 kB / 435.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.3097, allocations: 7.531 kB / 435.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3097, allocations: 12.62 kB / 435.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.3097, allocations: 5.312 kB / 435.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.31, allocations: 67.98 kB / 435.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.31, allocations: 6.094 kB / 435.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.3101, allocations: 31.36 kB / 435.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3102, allocations: 16.25 kB / 435.3 MB, free: 8.812 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 9.594e-05/0.3103, allocations: 139.1 kB / 435.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.3104, allocations: 17.59 kB / 435.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.693e-05/0.3104, allocations: 28.77 kB / 435.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3104, allocations: 2.188 kB / 435.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3104, allocations: 6.031 kB / 435.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3104, allocations: 2.219 kB / 435.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.3108, allocations: 279.6 kB / 435.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.3108, allocations: 0 / 435.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.3111, allocations: 48.59 kB / 435.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3111, allocations: 2.875 kB / 435.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3111, allocations: 10.19 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.3111, allocations: 2.891 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3111, allocations: 4.656 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.3116, allocations: 0.5226 MB / 436.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.3117, allocations: 99.88 kB / 436.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3117, allocations: 3.781 kB / 436.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.3119, allocations: 13.88 kB / 436.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.312, allocations: 11.27 kB / 436.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.312, allocations: 7.938 kB / 436.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001055/0.3121, allocations: 141.5 kB / 436.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3121, allocations: 3.828 kB / 436.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004507/0.3125, allocations: 63.88 kB / 436.7 MB, free: 7.824 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.000645/0.3132, allocations: 1.071 MB / 437.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.3136, allocations: 153.5 kB / 437.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3136, allocations: 0 / 437.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.3137, allocations: 63.25 kB / 438 MB, free: 6.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.3144, allocations: 55.7 kB / 438 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.3176, allocations: 3.062 MB / 441.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.3177, allocations: 0.7467 MB / 441.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.3179, allocations: 25.5 kB / 441.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.889e-05/0.318, allocations: 71.98 kB / 441.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.318, allocations: 4 kB / 441.9 MB, free: 3.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.3476, allocations: 4.717 MB / 446.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.275/8.623, allocations: 14.27 kB / 446.7 MB, free: 2.977 MB / 350.1 MB " [Timeout remaining time 651] (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: 12.453775108006084]