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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 105.3 kB / 16.4 MB, free: 6.457 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.001546/0.001546, allocations: 189.5 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2238/0.2238, allocations: 43.53 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 73.44 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1205, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00441/0.125, allocations: 2.699 MB / 0.49 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1271, allocations: 0.9898 MB / 0.491 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.1274, allocations: 11.94 kB / 0.491 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.1277, allocations: 47.52 kB / 0.491 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.128, allocations: 107 kB / 0.4911 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005495/0.1286, allocations: 143.6 kB / 0.4913 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000557/0.1292, allocations: 366.2 kB / 0.4916 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.1294, allocations: 97.09 kB / 0.4917 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.1297, allocations: 131.5 kB / 0.4918 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1299, allocations: 143.3 kB / 0.492 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.13, allocations: 24 kB / 0.492 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.1302, allocations: 47.98 kB / 0.4921 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.544e-05/0.1302, allocations: 59.77 kB / 0.4921 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1304, allocations: 163.2 kB / 0.4923 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004948/0.1309, allocations: 370.4 kB / 0.4926 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.131, allocations: 0 / 0.4926 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.131, allocations: 0 / 0.4926 GB, free: 6.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.131, allocations: 0 / 0.4926 GB, free: 6.914 MB / 382.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.0009846/0.132, allocations: 0.6001 MB / 0.4932 GB, free: 6.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.132, allocations: 11.89 kB / 0.4932 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.415e-05/0.1321, allocations: 62.73 kB / 0.4933 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.1323, allocations: 52.67 kB / 0.4933 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.1327, allocations: 275.8 kB / 0.4936 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.1328, allocations: 21.03 kB / 0.4936 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.1328, allocations: 44.33 kB / 0.4937 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.1334, allocations: 306.4 kB / 0.4939 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1334, allocations: 19.81 kB / 0.494 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.1334, allocations: 16 kB / 0.494 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.1335, allocations: 8 kB / 0.494 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.1338, allocations: 167.8 kB / 0.4941 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.1357, allocations: 1.341 MB / 0.4955 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004505/0.1362, allocations: 253 kB / 0.4957 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1363, allocations: 72.28 kB / 0.4958 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.1363, allocations: 4 kB / 0.4958 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.1364, allocations: 42.48 kB / 0.4958 GB, free: 3.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.1364, allocations: 4 kB / 0.4958 GB, free: 3.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005057/0.1369, allocations: 218.1 kB / 0.496 GB, free: 3.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.137, allocations: 158.2 kB / 0.4962 GB, free: 2.938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.1373, allocations: 212.1 kB / 0.4964 GB, free: 2.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1373, allocations: 29.7 kB / 0.4964 GB, free: 2.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.1374, allocations: 196.4 kB / 0.4966 GB, free: 2.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.156e-05/0.1375, allocations: 91.27 kB / 0.4967 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-05/0.1376, allocations: 69.78 kB / 0.4967 GB, free: 2.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1378, allocations: 334.8 kB / 0.4971 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1379, allocations: 63.97 kB / 0.4971 GB, free: 1.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.1382, allocations: 209.8 kB / 0.4973 GB, free: 1.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/0.1386, allocations: 289.7 kB / 0.4976 GB, free: 1.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1386, allocations: 4 kB / 0.4976 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004958/0.1391, allocations: 321 kB / 0.4979 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1391, allocations: 8 kB / 0.4979 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.1392, allocations: 4 kB / 0.4979 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.1392, allocations: 8.531 kB / 0.4979 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.1395, allocations: 91.94 kB / 0.498 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.1395, allocations: 11.92 kB / 0.498 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.1397, allocations: 35.73 kB / 0.4981 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.1397, allocations: 20 kB / 0.4981 GB, free: 0.8047 MB / 382.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.000147/0.1398, allocations: 157.5 kB / 0.4982 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.14, allocations: 23.86 kB / 0.4983 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.1401, allocations: 87.06 kB / 0.4983 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.1402, allocations: 4 kB / 0.4983 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.1402, allocations: 11.94 kB / 0.4984 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1402, allocations: 7.922 kB / 0.4984 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005934/0.1408, allocations: 313.3 kB / 0.4987 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.1408, allocations: 0 / 0.4987 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.1411, allocations: 63.97 kB / 0.4987 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1411, allocations: 4 kB / 0.4987 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1412, allocations: 8 kB / 0.4987 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.1412, allocations: 3.984 kB / 0.4987 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.1412, allocations: 7.938 kB / 0.4987 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005991/0.1418, allocations: 0.6258 MB / 0.4994 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.416e-05/0.1419, allocations: 104.9 kB / 0.4995 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.1419, allocations: 8.25 kB / 0.4995 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.1422, allocations: 4 kB / 0.4995 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.1422, allocations: 27.92 kB / 0.4995 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.1422, allocations: 11.98 kB / 0.4995 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1424, allocations: 149.8 kB / 0.4996 GB, free: 15.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 0 / 0.4996 GB, free: 15.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.1429, allocations: 75.89 kB / 0.4997 GB, free: 15.03 MB / 398.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.0008659/0.1438, allocations: 1.179 MB / 0.5009 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003374/0.1441, allocations: 184.6 kB / 0.501 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.1441, allocations: 4.312 kB / 0.501 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.1443, allocations: 75.84 kB / 0.5011 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.145, allocations: 65.19 kB / 0.5012 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.1492, allocations: 3.556 MB / 0.5047 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.1497, allocations: 0.7716 MB / 0.5054 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.1498, allocations: 22.98 kB / 0.5054 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.15, allocations: 95.39 kB / 0.5055 GB, free: 8.809 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.15, allocations: 0 / 0.5055 GB, free: 8.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.18, allocations: 5.363 MB / 0.5108 GB, free: 3.441 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/8.695, allocations: 16.44 kB / 0.5108 GB, free: 3.43 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches