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.00203/0.00203, allocations: 132.4 kB / 17.79 MB, free: 5.242 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.00221/0.00221, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.526/1.526, allocations: 230.4 MB / 254 MB, free: 15.02 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.002059/0.002059, allocations: 64.08 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1032, allocations: 53.38 MB / 426.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003853/0.107, allocations: 2.285 MB / 428.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1086, allocations: 0.7635 MB / 429.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1087, allocations: 7.938 kB / 429.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.1089, allocations: 31.66 kB / 429.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002968/0.1091, allocations: 95.25 kB / 429.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.1095, allocations: 103.8 kB / 429.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.1099, allocations: 302.6 kB / 429.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.11, allocations: 42.97 kB / 430 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.1102, allocations: 119.6 kB / 430.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001913/0.1103, allocations: 115.5 kB / 430.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.1104, allocations: 23.94 kB / 430.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.068e-05/0.1104, allocations: 20 kB / 430.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.1105, allocations: 51.84 kB / 430.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.1106, allocations: 119.4 kB / 430.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1109, allocations: 266.8 kB / 430.7 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1109, allocations: 3.938 kB / 430.7 MB, free: 276 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1109, allocations: 0 / 430.7 MB, free: 276 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.1109, allocations: 4 kB / 430.7 MB, free: 272 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.1759/0.2868, allocations: 0.5184 MB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.2869, allocations: 10.06 kB / 431.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.027e-05/0.2869, allocations: 57.66 kB / 431.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.904e-05/0.287, allocations: 31.73 kB / 431.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.2874, allocations: 257.4 kB / 431.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.2874, allocations: 17.62 kB / 431.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.2875, allocations: 23.92 kB / 431.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.2879, allocations: 239.8 kB / 431.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.288, allocations: 13.86 kB / 431.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.288, allocations: 6.719 kB / 431.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.288, allocations: 10 kB / 431.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.2883, allocations: 139.9 kB / 432 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2896, allocations: 1.056 MB / 433 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.29, allocations: 205 kB / 433.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.2901, allocations: 68.41 kB / 433.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.2902, allocations: 5.625 kB / 433.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.2902, allocations: 36.66 kB / 433.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.2902, allocations: 0 / 433.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005305/0.2907, allocations: 200.8 kB / 433.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.2907, allocations: 134.2 kB / 433.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.2909, allocations: 196.5 kB / 433.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2909, allocations: 26.95 kB / 433.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.291, allocations: 161.5 kB / 434.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.291, allocations: 69.45 kB / 434.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.2911, allocations: 56.98 kB / 434.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.2911, allocations: 325.9 kB / 434.5 MB, free: 9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.2912, allocations: 62.88 kB / 434.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.2914, allocations: 166.4 kB / 434.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.2917, allocations: 235.4 kB / 435 MB, free: 8.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2917, allocations: 3.094 kB / 435 MB, free: 8.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004386/0.2921, allocations: 255.8 kB / 435.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2922, allocations: 6.781 kB / 435.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2922, allocations: 6.688 kB / 435.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.2922, allocations: 8 kB / 435.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.2925, allocations: 75.33 kB / 435.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.2925, allocations: 5.438 kB / 435.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.2926, allocations: 28.25 kB / 435.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.2926, allocations: 13.58 kB / 435.3 MB, free: 8.672 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.0001074/0.2927, allocations: 141.7 kB / 435.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.908e-05/0.2928, allocations: 17.14 kB / 435.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.276e-05/0.2929, allocations: 27.66 kB / 435.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2929, allocations: 2.219 kB / 435.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2929, allocations: 5.438 kB / 435.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2929, allocations: 1.062 kB / 435.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.2933, allocations: 271 kB / 435.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2933, allocations: 0.9688 kB / 435.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.2936, allocations: 57.03 kB / 435.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.2936, allocations: 2.344 kB / 435.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2936, allocations: 6.953 kB / 435.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.2936, allocations: 2.406 kB / 435.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2936, allocations: 1.469 kB / 435.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005299/0.2941, allocations: 0.528 MB / 436.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.2942, allocations: 94.8 kB / 436.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.2942, allocations: 8.297 kB / 436.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.2944, allocations: 13.09 kB / 436.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.2945, allocations: 12.64 kB / 436.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.2945, allocations: 4 kB / 436.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.571e-05/0.2946, allocations: 147 kB / 436.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2946, allocations: 0 / 436.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004515/0.295, allocations: 66.06 kB / 436.7 MB, free: 7.672 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.0006237/0.2957, allocations: 1.067 MB / 437.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.296, allocations: 151.2 kB / 438 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.296, allocations: 0 / 438 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.2962, allocations: 65.19 kB / 438 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006894/0.2968, allocations: 62.27 kB / 438.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.3002, allocations: 3.067 MB / 441.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.3004, allocations: 0.7463 MB / 441.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.3005, allocations: 21.73 kB / 441.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.679e-05/0.3006, allocations: 72.41 kB / 442 MB, free: 3.484 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3006, allocations: 0 / 442 MB, free: 3.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04196/0.3426, allocations: 4.729 MB / 446.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.107/8.449, allocations: 5.953 kB / 446.7 MB, free: 2.812 MB / 350.1 MB " [Timeout remaining time 651] (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: 12.136748534976505]