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.001351/0.001351, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.001467/0.001467, allocations: 212.9 kB / 21.46 MB, free: 1.566 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.416/1.416, allocations: 230.2 MB / 254.5 MB, free: 15.22 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.001772/0.001772, allocations: 63.89 kB / 373.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1036, allocations: 53.33 MB / 426.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003787/0.1074, allocations: 2.288 MB / 429 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.1088, allocations: 0.7596 MB / 429.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1089, allocations: 7.938 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1091, allocations: 31.66 kB / 429.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.1094, allocations: 95.2 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.1097, allocations: 111.8 kB / 430 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.1101, allocations: 298.6 kB / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1102, allocations: 44.38 kB / 430.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.1104, allocations: 115.6 kB / 430.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1105, allocations: 119.5 kB / 430.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.1106, allocations: 23.94 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.687e-05/0.1106, allocations: 20 kB / 430.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.211e-05/0.1107, allocations: 51.83 kB / 430.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1108, allocations: 119.4 kB / 430.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1111, allocations: 266.8 kB / 431 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1111, allocations: 3.938 kB / 431 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1111, allocations: 0 / 431 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1111, allocations: 4 kB / 431 MB, free: 0.5664 MB / 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.0008517/0.112, allocations: 0.5183 MB / 431.6 MB, free: 0 / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.561e-05/0.112, allocations: 8.078 kB / 431.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.8e-05/0.1121, allocations: 66.61 kB / 431.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.324e-05/0.1122, allocations: 28.75 kB / 431.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.1125, allocations: 259.8 kB / 431.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.1126, allocations: 16.81 kB / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/0.1126, allocations: 20.38 kB / 432 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.113, allocations: 242.8 kB / 432.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.1131, allocations: 3.953 kB / 432.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1131, allocations: 12 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1131, allocations: 4 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1135, allocations: 143.8 kB / 432.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.115, allocations: 1.065 MB / 433.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.1155, allocations: 202.4 kB / 433.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.1156, allocations: 59.48 kB / 433.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.1156, allocations: 11.94 kB / 433.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.1157, allocations: 38.5 kB / 433.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.1157, allocations: 4 kB / 433.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006095/0.1163, allocations: 198.1 kB / 433.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.449e-05/0.1164, allocations: 128.5 kB / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.1166, allocations: 190.8 kB / 434.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.1166, allocations: 33.7 kB / 434.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1167, allocations: 164.1 kB / 434.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.1168, allocations: 71.44 kB / 434.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.029e-05/0.1169, allocations: 49.66 kB / 434.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.117, allocations: 330.8 kB / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.1172, allocations: 55.97 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.1174, allocations: 174.1 kB / 435.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.1178, allocations: 233.5 kB / 435.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1178, allocations: 0 / 435.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004993/0.1183, allocations: 261.5 kB / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.1183, allocations: 14.44 kB / 435.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1184, allocations: 4 kB / 435.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1184, allocations: 4 kB / 435.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1187, allocations: 63.91 kB / 435.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1187, allocations: 8 kB / 435.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.1188, allocations: 31.77 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.1188, allocations: 19.94 kB / 435.7 MB, free: 11.46 MB / 366.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.0001266/0.119, allocations: 133.8 kB / 435.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.417e-05/0.1191, allocations: 27.84 kB / 435.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.319e-05/0.1191, allocations: 24.86 kB / 435.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1191, allocations: 4.25 kB / 435.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1191, allocations: 0 / 435.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1191, allocations: 4 kB / 435.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.1196, allocations: 273.4 kB / 436.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1196, allocations: 0 / 436.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.1199, allocations: 55.95 kB / 436.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1199, allocations: 3.938 kB / 436.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.1199, allocations: 8 kB / 436.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1199, allocations: 4 kB / 436.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1199, allocations: 4 kB / 436.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007035/0.1206, allocations: 0.5225 MB / 436.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.1207, allocations: 101 kB / 436.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.996e-05/0.1208, allocations: 4 kB / 436.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.121, allocations: 11.98 kB / 436.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.741e-05/0.121, allocations: 7.984 kB / 436.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.121, allocations: 8 kB / 436.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.1212, allocations: 144.9 kB / 437 MB, free: 10.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1212, allocations: 0 / 437 MB, free: 10.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.1216, allocations: 63.84 kB / 437.1 MB, free: 9.973 MB / 366.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.001044/0.1227, allocations: 1.072 MB / 438.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.1231, allocations: 143.8 kB / 438.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1231, allocations: 4 kB / 438.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.1232, allocations: 63.89 kB / 438.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007022/0.1239, allocations: 62.94 kB / 438.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/0.1282, allocations: 3.072 MB / 441.5 MB, free: 5.352 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.1286, allocations: 0.748 MB / 442.3 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.1287, allocations: 26.28 kB / 442.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.1288, allocations: 67.42 kB / 442.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1288, allocations: 0 / 442.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2024/0.3312, allocations: 4.714 MB / 447.1 MB, free: 25.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.508, allocations: 4.031 kB / 447.1 MB, free: 25.68 MB / 366.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 & /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: 12.149723337963223]