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.00155/0.00155, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.00169/0.00169, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.443/1.443, allocations: 230.4 MB / 254.7 MB, free: 15.01 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 55.91 kB / 373.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09789, allocations: 53.37 MB / 427.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003459/0.1014, allocations: 2.294 MB / 429.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1027, allocations: 0.7596 MB / 430.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1028, allocations: 7.938 kB / 430.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.103, allocations: 35.59 kB / 430.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.1032, allocations: 87.33 kB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.1035, allocations: 111.7 kB / 430.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.1039, allocations: 302.6 kB / 430.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.104, allocations: 44.38 kB / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.1041, allocations: 115.5 kB / 430.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1043, allocations: 119.5 kB / 430.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.1043, allocations: 20 kB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.699e-05/0.1044, allocations: 20 kB / 430.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.621e-05/0.1044, allocations: 47.84 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1045, allocations: 127.3 kB / 431.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.1048, allocations: 270.8 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1049, allocations: 0 / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1049, allocations: 0 / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1049, allocations: 0 / 431.4 MB, free: 340 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.1676/0.2725, allocations: 0.5188 MB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.2725, allocations: 9.75 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.429e-05/0.2726, allocations: 6.312 kB / 431.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.2726, allocations: 59.69 kB / 432 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.955e-05/0.2727, allocations: 30.88 kB / 432 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.2731, allocations: 257 kB / 432.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.2731, allocations: 16.78 kB / 432.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.2731, allocations: 25.8 kB / 432.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.2736, allocations: 236.4 kB / 432.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.2736, allocations: 10.89 kB / 432.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2736, allocations: 6.438 kB / 432.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2736, allocations: 8.031 kB / 432.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.274, allocations: 141.7 kB / 432.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.2751, allocations: 1.056 MB / 433.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/0.2755, allocations: 205 kB / 434 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.2756, allocations: 63.75 kB / 434 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2757, allocations: 6.5 kB / 434 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.345e-05/0.2757, allocations: 36.25 kB / 434.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.2757, allocations: 3.156 kB / 434.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005112/0.2762, allocations: 202 kB / 434.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.2762, allocations: 134.9 kB / 434.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.2764, allocations: 195.9 kB / 434.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2764, allocations: 25.7 kB / 434.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.2764, allocations: 167.8 kB / 434.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.2765, allocations: 70.47 kB / 434.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-05/0.2765, allocations: 53.98 kB / 434.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.2766, allocations: 332.6 kB / 435.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.2767, allocations: 59.41 kB / 435.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.2769, allocations: 156.9 kB / 435.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.2771, allocations: 238.3 kB / 435.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2771, allocations: 4.453 kB / 435.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004236/0.2776, allocations: 258.8 kB / 435.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2776, allocations: 10.38 kB / 435.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2776, allocations: 4.344 kB / 435.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.2776, allocations: 4.812 kB / 435.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.2779, allocations: 70.78 kB / 436 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2779, allocations: 4.969 kB / 436 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.278, allocations: 27.08 kB / 436 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.2781, allocations: 13.47 kB / 436 MB, free: 8.27 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.043e-05/0.2781, allocations: 149.2 kB / 436.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-05/0.2782, allocations: 21.12 kB / 436.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.2783, allocations: 21.94 kB / 436.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2783, allocations: 4.625 kB / 436.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2783, allocations: 3.156 kB / 436.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2783, allocations: 3.266 kB / 436.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.2787, allocations: 272.4 kB / 436.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2787, allocations: 1.156 kB / 436.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.279, allocations: 51.28 kB / 436.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.279, allocations: 6.594 kB / 436.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.279, allocations: 12.81 kB / 436.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.279, allocations: 1.406 kB / 436.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.279, allocations: 5.188 kB / 436.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.2795, allocations: 0.5105 MB / 437.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.2795, allocations: 106.6 kB / 437.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.2795, allocations: 5.719 kB / 437.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.2797, allocations: 4.469 kB / 437.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.2798, allocations: 17.28 kB / 437.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.2798, allocations: 4.562 kB / 437.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.68e-05/0.2799, allocations: 148.4 kB / 437.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2799, allocations: 0 / 437.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004182/0.2803, allocations: 65.86 kB / 437.4 MB, free: 7.344 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.0006028/0.2809, allocations: 1.068 MB / 438.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003415/0.2813, allocations: 154 kB / 438.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2813, allocations: 0 / 438.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.2814, allocations: 61.47 kB / 438.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000652/0.282, allocations: 59.2 kB / 438.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.285, allocations: 3.065 MB / 441.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.2852, allocations: 0.7507 MB / 442.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.397e-05/0.2853, allocations: 25.45 kB / 442.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.437e-05/0.2854, allocations: 71.09 kB / 442.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2854, allocations: 0 / 442.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.3072, allocations: 4.757 MB / 447.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.276, allocations: 14.41 kB / 447.5 MB, free: 2.648 MB / 350.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.598875930998474]