Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001449, allocations: 106.1 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001589, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 242.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.206/0.206, allocations: 44.19 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.05 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09867, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004009/0.1027, allocations: 2.691 MB / 472.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1045, allocations: 0.9503 MB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.1047, allocations: 11.94 kB / 473.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.1049, allocations: 47.52 kB / 473.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.1051, allocations: 111 kB / 473.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.1056, allocations: 135.6 kB / 473.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.1059, allocations: 374.2 kB / 474.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1061, allocations: 85.12 kB / 474.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1063, allocations: 127.5 kB / 474.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1064, allocations: 143.3 kB / 474.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.1065, allocations: 28 kB / 474.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.1066, allocations: 39.98 kB / 474.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.232e-05/0.1067, allocations: 71.7 kB / 474.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1068, allocations: 159.2 kB / 474.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.1072, allocations: 359 kB / 475.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1072, allocations: 4 kB / 475.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1072, allocations: 0 / 475.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.1072, allocations: 0 / 475.2 MB, free: 9.062 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008394/0.1081, allocations: 0.6004 MB / 475.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1081, allocations: 8.031 kB / 475.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.1083, allocations: 56.48 kB / 475.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.1086, allocations: 255.8 kB / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.1086, allocations: 25.03 kB / 476.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.1087, allocations: 40.27 kB / 476.2 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.1091, allocations: 298.6 kB / 476.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.1092, allocations: 11.89 kB / 476.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.1092, allocations: 16 kB / 476.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1092, allocations: 8 kB / 476.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.1095, allocations: 175.8 kB / 476.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.1113, allocations: 1.34 MB / 478 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000415/0.1117, allocations: 249.1 kB / 478.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.1118, allocations: 76.22 kB / 478.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.1118, allocations: 4 kB / 478.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1119, allocations: 42.5 kB / 478.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.355e-06/0.1119, allocations: 0 / 478.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004743/0.1124, allocations: 221.4 kB / 478.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.289e-05/0.1124, allocations: 158.2 kB / 478.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1126, allocations: 208.2 kB / 479 MB, free: 4.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.1127, allocations: 29.7 kB / 479 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.1128, allocations: 196 kB / 479.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.1129, allocations: 90.75 kB / 479.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.308e-05/0.113, allocations: 65.69 kB / 479.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1131, allocations: 338.8 kB / 479.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.1132, allocations: 71.91 kB / 479.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.1134, allocations: 201.9 kB / 479.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003193/0.1137, allocations: 297.6 kB / 480.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1137, allocations: 0 / 480.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004526/0.1142, allocations: 320.9 kB / 480.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1142, allocations: 8 kB / 480.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.1142, allocations: 4 kB / 480.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1143, allocations: 8.531 kB / 480.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.1146, allocations: 87.84 kB / 480.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.987e-05/0.1146, allocations: 20.05 kB / 480.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.1148, allocations: 39.56 kB / 480.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.1148, allocations: 16 kB / 480.7 MB, free: 3.055 MB / 350.1 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.000129/0.1149, allocations: 153.7 kB / 480.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.1151, allocations: 23.72 kB / 480.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.1152, allocations: 87.02 kB / 481 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1152, allocations: 4 kB / 481 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1153, allocations: 4 kB / 481 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.1153, allocations: 7.984 kB / 481 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.1158, allocations: 313.3 kB / 481.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1159, allocations: 4 kB / 481.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.1162, allocations: 59.97 kB / 481.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1162, allocations: 0 / 481.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1162, allocations: 8 kB / 481.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.1162, allocations: 11.92 kB / 481.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1162, allocations: 0 / 481.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.1167, allocations: 0.6331 MB / 482 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.494e-05/0.1168, allocations: 100.8 kB / 482.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.575e-05/0.1168, allocations: 8.25 kB / 482.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.1171, allocations: 12.09 kB / 482.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.205e-05/0.1171, allocations: 19.86 kB / 482.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1172, allocations: 12 kB / 482.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.1173, allocations: 149.6 kB / 482.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1173, allocations: 0 / 482.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.1178, allocations: 91.69 kB / 482.4 MB, free: 1.273 MB / 350.1 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.000111/0.1179, allocations: 103.2 kB / 482.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.1183, allocations: 200.7 kB / 482.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1183, allocations: 0 / 482.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.86e-05/0.1184, allocations: 75.86 kB / 482.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000857/0.1193, allocations: 60.48 kB / 482.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.121, allocations: 1.147 MB / 484 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1214, allocations: 0.7677 MB / 484.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.031e-05/0.1215, allocations: 23.44 kB / 484.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1215, allocations: 0 / 484.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of Templates: time 0.005824/0.1273, allocations: 3.373 MB / 488.1 MB, free: 11.46 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches