Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001903/0.001903, allocations: 96.97 kB / 20.21 MB, free: 4.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002065/0.002065, allocations: 165.2 kB / 23.53 MB, free: 0.8984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 158.6 MB / 185.3 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2163/0.2163, allocations: 32.37 MB / 270 MB, free: 14.77 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 346.9 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.413e-05/3.625e-05, allocations: 6.312 kB / 346.9 MB, free: 9.832 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005178/0.005214, allocations: 2.679 MB / 349.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.007617, allocations: 0.9822 MB / 350.6 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.007857, allocations: 7.938 kB / 350.6 MB, free: 6.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.008087, allocations: 55.45 kB / 350.6 MB, free: 6.086 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002907/0.008378, allocations: 107 kB / 350.7 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005726/0.00895, allocations: 151.4 kB / 350.9 MB, free: 5.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.009396, allocations: 386 kB / 351.3 MB, free: 5.453 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.009599, allocations: 57.39 kB / 351.3 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.009876, allocations: 215.5 kB / 351.5 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.01009, allocations: 103.7 kB / 351.6 MB, free: 5.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.432e-05/0.01014, allocations: 24 kB / 351.7 MB, free: 5.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.01028, allocations: 39.98 kB / 351.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.708e-05/0.01034, allocations: 67.75 kB / 351.8 MB, free: 4.961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.01048, allocations: 111.7 kB / 351.9 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004778/0.01096, allocations: 370.8 kB / 352.2 MB, free: 4.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.01096, allocations: 3.938 kB / 352.2 MB, free: 4.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01096, allocations: 0 / 352.2 MB, free: 4.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.01097, allocations: 0 / 352.2 MB, free: 4.484 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001115/0.01209, allocations: 0.64 MB / 352.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.01213, allocations: 8.031 kB / 352.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003549/0.01249, allocations: 88.62 kB / 353 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.01285, allocations: 208.1 kB / 353.2 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.01288, allocations: 32.95 kB / 353.2 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.895e-05/0.01295, allocations: 28.38 kB / 353.2 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.01355, allocations: 321.4 kB / 353.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.01358, allocations: 16.12 kB / 353.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.01362, allocations: 15.94 kB / 353.6 MB, free: 3.051 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.01363, allocations: 8 kB / 353.6 MB, free: 3.043 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.01407, allocations: 159.8 kB / 353.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.0164, allocations: 1.488 MB / 355.2 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.01696, allocations: 291.5 kB / 355.5 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.0171, allocations: 82.42 kB / 355.6 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.01714, allocations: 8 kB / 355.6 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.01717, allocations: 49.31 kB / 355.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.916e-06/0.01717, allocations: 0 / 355.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007121/0.01788, allocations: 221.3 kB / 355.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.01793, allocations: 158.2 kB / 356 MB, free: 392 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.01817, allocations: 286.8 kB / 356.3 MB, free: 88 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.01819, allocations: 33.7 kB / 356.3 MB, free: 48 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.01845, allocations: 239.1 kB / 356.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.0186, allocations: 107.3 kB / 356.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.01879, allocations: 75.36 kB / 356.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004115/0.01921, allocations: 0.5118 MB / 357.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.01942, allocations: 68.09 kB / 357.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.01991, allocations: 277.6 kB / 357.6 MB, free: 14.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/0.02065, allocations: 365.1 kB / 358 MB, free: 14.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.02066, allocations: 4 kB / 358 MB, free: 14.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009346/0.02159, allocations: 336.9 kB / 358.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.02164, allocations: 11.94 kB / 358.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.02165, allocations: 4 kB / 358.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.777e-05/0.02171, allocations: 8 kB / 358.3 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004914/0.0222, allocations: 87.89 kB / 358.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-05/0.02222, allocations: 8.469 kB / 358.4 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.02251, allocations: 35.72 kB / 358.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.02254, allocations: 20 kB / 358.5 MB, free: 13.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0003282/0.02287, allocations: 204.4 kB / 358.7 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.02307, allocations: 35.8 kB / 358.7 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.02334, allocations: 83.14 kB / 358.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.02335, allocations: 4 kB / 358.8 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.02336, allocations: 4 kB / 358.8 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.02337, allocations: 0 / 358.8 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009226/0.02429, allocations: 260.4 kB / 359 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.02429, allocations: 0 / 359 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004992/0.02479, allocations: 71.91 kB / 359.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.0248, allocations: 4 kB / 359.1 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.02483, allocations: 11.94 kB / 359.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.02484, allocations: 0 / 359.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.02484, allocations: 4 kB / 359.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.02598, allocations: 0.8625 MB / 360 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.02604, allocations: 23.86 kB / 360 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.0261, allocations: 15.94 kB / 360 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003864/0.02649, allocations: 3.984 kB / 360 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.02657, allocations: 19.97 kB / 360.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.0266, allocations: 15.98 kB / 360.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002445/0.02685, allocations: 191.8 kB / 360.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02685, allocations: 0 / 360.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009024/0.02775, allocations: 79.83 kB / 360.3 MB, free: 11.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * 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.0001839/0.02793, allocations: 103.2 kB / 360.4 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005746/0.02851, allocations: 205.4 kB / 360.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.02851, allocations: 4 kB / 360.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002024/0.02871, allocations: 91.58 kB / 360.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.02999, allocations: 65.61 kB / 360.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.03235, allocations: 0.9098 MB / 361.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.03266, allocations: 164.8 kB / 361.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.03283, allocations: 26.28 kB / 361.9 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.504e-05/0.03292, allocations: 24.48 kB / 361.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of SimCode: time 1.313e-06/0.03292, allocations: 0 / 361.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of Templates: time 0.007913/0.04083, allocations: 2.479 MB / 364.4 MB, free: 7.68 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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: 4.904240187024698]