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.001318/0.001318, allocations: 114 kB / 20.43 MB, free: 1.457 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.001458/0.001458, allocations: 214 kB / 23.74 MB, free: 4.672 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.414/1.414, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001946/0.001946, allocations: 67.89 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 53.4 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003737/0.2648, allocations: 2.308 MB / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.2663, allocations: 0.7711 MB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.2664, allocations: 7.938 kB / 434.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.2666, allocations: 39.58 kB / 434.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.2668, allocations: 91.31 kB / 434.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.2672, allocations: 103.8 kB / 434.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.2675, allocations: 302.6 kB / 434.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.2677, allocations: 40.58 kB / 434.8 MB, free: 3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.2678, allocations: 119.6 kB / 434.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.268, allocations: 119.4 kB / 435.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.268, allocations: 20 kB / 435.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.993e-05/0.2681, allocations: 20 kB / 435.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.381e-05/0.2681, allocations: 55.77 kB / 435.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2683, allocations: 119.4 kB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.2686, allocations: 267.2 kB / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.2686, allocations: 4 kB / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2686, allocations: 0 / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2686, allocations: 0 / 435.5 MB, free: 2.293 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.0008336/0.2694, allocations: 461.5 kB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2695, allocations: 8.031 kB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.615e-05/0.2695, allocations: 62.72 kB / 436 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.2696, allocations: 28.75 kB / 436.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.27, allocations: 194.8 kB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.27, allocations: 16.8 kB / 436.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.27, allocations: 28.38 kB / 436.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.2705, allocations: 238.8 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.2705, allocations: 3.953 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.2705, allocations: 15.94 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.2705, allocations: 4 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003281/0.2709, allocations: 135.9 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.2723, allocations: 0.9892 MB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.2728, allocations: 202.4 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.273, allocations: 71.42 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.273, allocations: 4 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.273, allocations: 38.5 kB / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.273, allocations: 0 / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005723/0.2736, allocations: 197.4 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/0.2737, allocations: 136.5 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.2739, allocations: 195.2 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.2739, allocations: 33.64 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.274, allocations: 164.2 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.961e-05/0.2741, allocations: 75.36 kB / 438.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.2741, allocations: 49.66 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2743, allocations: 330.8 kB / 439.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.2744, allocations: 59.95 kB / 439.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.2747, allocations: 165.6 kB / 439.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.275, allocations: 229.5 kB / 439.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.275, allocations: 4 kB / 439.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004819/0.2755, allocations: 265.3 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.2755, allocations: 7.938 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.2755, allocations: 4 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.2756, allocations: 8 kB / 439.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.2758, allocations: 63.91 kB / 439.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.2758, allocations: 4.375 kB / 439.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.276, allocations: 35.77 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.276, allocations: 16 kB / 440 MB, free: 13.43 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.0001368/0.2762, allocations: 141.7 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.2762, allocations: 19.84 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.2763, allocations: 21.02 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2763, allocations: 4 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2763, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.2763, allocations: 4 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.2768, allocations: 248.5 kB / 440.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2768, allocations: 4 kB / 440.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.2771, allocations: 47.97 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.2771, allocations: 7.938 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.2771, allocations: 4 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2771, allocations: 4 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.2771, allocations: 3.938 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006486/0.2778, allocations: 0.5266 MB / 441 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.2778, allocations: 19.97 kB / 441 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.2778, allocations: 4 kB / 441 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.2781, allocations: 7.984 kB / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.2781, allocations: 11.98 kB / 441.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.2781, allocations: 11.94 kB / 441.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2783, allocations: 144.4 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2783, allocations: 0 / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004676/0.2787, allocations: 63.84 kB / 441.3 MB, free: 12.08 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.0009358/0.2797, allocations: 1.065 MB / 442.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.2801, allocations: 156.1 kB / 442.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.2801, allocations: 4.75 kB / 442.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.2802, allocations: 67.89 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007141/0.2809, allocations: 55.59 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003997/0.2849, allocations: 3.056 MB / 445.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.2853, allocations: 0.744 MB / 446.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.2854, allocations: 34.27 kB / 446.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2856, allocations: 75.41 kB / 446.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2856, allocations: 0 / 446.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3189, allocations: 4.971 MB / 451.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.43, allocations: 7.938 kB / 451.5 MB, free: 1.75 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.02632209299918]