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.00128/0.00128, allocations: 128.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.001368/0.001368, 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.398/1.398, allocations: 230.4 MB / 254 MB, free: 15.04 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.0018/0.0018, allocations: 59.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09968, allocations: 53.38 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003511/0.1032, allocations: 2.294 MB / 428.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1046, allocations: 0.7596 MB / 429.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1047, allocations: 7.938 kB / 429.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.1048, allocations: 35.59 kB / 429.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003015/0.1051, allocations: 87.33 kB / 429.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.1055, allocations: 115.7 kB / 429.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.1058, allocations: 294.7 kB / 429.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.1059, allocations: 44.38 kB / 430 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1061, allocations: 119.5 kB / 430.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.1063, allocations: 119.5 kB / 430.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.1063, allocations: 20 kB / 430.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.541e-05/0.1063, allocations: 20 kB / 430.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.77e-05/0.1064, allocations: 51.83 kB / 430.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1065, allocations: 123.3 kB / 430.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.1068, allocations: 266.8 kB / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1068, allocations: 0 / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1068, allocations: 0 / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1068, allocations: 4 kB / 430.7 MB, free: 256 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.1727/0.2795, allocations: 0.5191 MB / 431.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.2795, allocations: 8.719 kB / 431.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/0.2796, allocations: 57.77 kB / 431.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.216e-05/0.2797, allocations: 30.31 kB / 431.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004011/0.2801, allocations: 259.6 kB / 431.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.2801, allocations: 17.25 kB / 431.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.2801, allocations: 23.83 kB / 431.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004459/0.2806, allocations: 234.3 kB / 431.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2806, allocations: 13.8 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.2806, allocations: 10.59 kB / 431.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.2806, allocations: 8.188 kB / 431.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.281, allocations: 138.6 kB / 432 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.2821, allocations: 1.055 MB / 433 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.2826, allocations: 205.3 kB / 433.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.2827, allocations: 69 kB / 433.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2827, allocations: 1.688 kB / 433.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.2827, allocations: 40.03 kB / 433.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.874e-06/0.2827, allocations: 0 / 433.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005432/0.2833, allocations: 204.5 kB / 433.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.2833, allocations: 130.7 kB / 433.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2834, allocations: 195.2 kB / 433.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.2835, allocations: 32.64 kB / 433.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/0.2835, allocations: 158.2 kB / 434.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.2836, allocations: 69.98 kB / 434.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.2837, allocations: 51.75 kB / 434.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.995e-05/0.2837, allocations: 335.7 kB / 434.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.2838, allocations: 56.92 kB / 434.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.284, allocations: 165 kB / 434.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.2843, allocations: 237 kB / 435 MB, free: 8.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2843, allocations: 3.25 kB / 435 MB, free: 8.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004079/0.2847, allocations: 258.3 kB / 435.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2847, allocations: 6.844 kB / 435.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2847, allocations: 8.188 kB / 435.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2848, allocations: 4.75 kB / 435.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.285, allocations: 67.41 kB / 435.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.285, allocations: 14.33 kB / 435.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.2851, allocations: 24.88 kB / 435.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.2852, allocations: 15.62 kB / 435.3 MB, free: 8.648 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 8.992e-05/0.2853, allocations: 142.5 kB / 435.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.208e-05/0.2853, allocations: 20.84 kB / 435.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.611e-05/0.2854, allocations: 25.16 kB / 435.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.2854, allocations: 2.625 kB / 435.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.2854, allocations: 5.656 kB / 435.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.463e-06/0.2854, allocations: 5.609 kB / 435.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.2858, allocations: 266.5 kB / 435.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2859, allocations: 1 kB / 435.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002674/0.2861, allocations: 53.11 kB / 435.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.2861, allocations: 1.344 kB / 435.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.2861, allocations: 10.31 kB / 435.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2861, allocations: 3.469 kB / 435.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2861, allocations: 5.188 kB / 435.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004884/0.2866, allocations: 0.5177 MB / 436.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.2867, allocations: 99.64 kB / 436.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.2867, allocations: 7.625 kB / 436.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.2869, allocations: 9.625 kB / 436.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.287, allocations: 14.94 kB / 436.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.287, allocations: 4.906 kB / 436.5 MB, free: 7.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.479e-05/0.2871, allocations: 145 kB / 436.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2871, allocations: 0 / 436.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004356/0.2875, allocations: 67.12 kB / 436.7 MB, free: 7.633 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.0005937/0.2881, allocations: 1.067 MB / 437.8 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003766/0.2885, allocations: 146.5 kB / 437.9 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2885, allocations: 5.438 kB / 437.9 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.2886, allocations: 63.02 kB / 438 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006452/0.2893, allocations: 59.33 kB / 438.1 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.2923, allocations: 3.062 MB / 441.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.2925, allocations: 0.7471 MB / 441.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.2926, allocations: 26.08 kB / 441.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-05/0.2927, allocations: 70.69 kB / 442 MB, free: 3.453 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2927, allocations: 1.031 kB / 442 MB, free: 3.453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.3241, allocations: 4.729 MB / 446.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.39, allocations: 7.266 kB / 446.7 MB, free: 2.781 MB / 350.1 MB " [Timeout remaining time 650] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.112602679990232]