Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.00167, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.236/1.236, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008455/0.0008454, allocations: 90.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3008/0.3008, allocations: 43.56 MB / 363.1 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 12 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1031, allocations: 58.84 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002508/0.1056, allocations: 2.285 MB / 493.2 MB, free: 8.277 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.107, allocations: 0.9362 MB / 494.1 MB, free: 7.332 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.1071, allocations: 8 kB / 494.1 MB, free: 7.324 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1072, allocations: 31.7 kB / 494.2 MB, free: 7.293 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.1074, allocations: 95.22 kB / 494.3 MB, free: 7.199 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.1078, allocations: 107.8 kB / 494.4 MB, free: 7.094 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.1081, allocations: 362.1 kB / 494.7 MB, free: 6.738 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.1083, allocations: 69.69 kB / 494.8 MB, free: 6.676 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.1084, allocations: 115.6 kB / 494.9 MB, free: 6.562 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1085, allocations: 127.4 kB / 495 MB, free: 6.438 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.1086, allocations: 12 kB / 495 MB, free: 6.426 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.479e-05/0.1087, allocations: 31.98 kB / 495.1 MB, free: 6.395 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.1087, allocations: 51.83 kB / 495.1 MB, free: 6.344 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1089, allocations: 169 kB / 495.3 MB, free: 6.172 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.1091, allocations: 259.5 kB / 495.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1092, allocations: 0 / 495.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1092, allocations: 4 kB / 495.5 MB, free: 5.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.1092, allocations: 0 / 495.5 MB, free: 5.914 MB / 378.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.0007589/0.11, allocations: 0.5382 MB / 496.1 MB, free: 5.328 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.11, allocations: 11.97 kB / 496.1 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.374e-05/0.1101, allocations: 66.73 kB / 496.2 MB, free: 5.242 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.1103, allocations: 56.44 kB / 496.2 MB, free: 5.188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.1105, allocations: 267.8 kB / 496.5 MB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.1106, allocations: 21.03 kB / 496.5 MB, free: 4.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.697e-05/0.1106, allocations: 40.28 kB / 496.5 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.1111, allocations: 298.5 kB / 496.8 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.1111, allocations: 11.91 kB / 496.8 MB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.1111, allocations: 8 kB / 496.9 MB, free: 4.496 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1112, allocations: 8 kB / 496.9 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.1115, allocations: 179.8 kB / 497 MB, free: 4.312 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.1132, allocations: 1.336 MB / 498.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.1135, allocations: 252.9 kB / 498.6 MB, free: 2.582 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.584e-05/0.1136, allocations: 72.33 kB / 498.7 MB, free: 2.496 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1137, allocations: 7.984 kB / 498.7 MB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.1137, allocations: 42.5 kB / 498.7 MB, free: 2.438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.1137, allocations: 0 / 498.7 MB, free: 2.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004494/0.1142, allocations: 217.4 kB / 498.9 MB, free: 2.219 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.1142, allocations: 162.2 kB / 499.1 MB, free: 2.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.1145, allocations: 208.1 kB / 499.3 MB, free: 1.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1145, allocations: 29.64 kB / 499.3 MB, free: 1.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1146, allocations: 188 kB / 499.5 MB, free: 1.582 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.513e-05/0.1147, allocations: 98.86 kB / 499.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.1147, allocations: 4 kB / 499.6 MB, free: 1.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1148, allocations: 338.8 kB / 500 MB, free: 1.141 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.115, allocations: 59.97 kB / 0.4883 GB, free: 1.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.1151, allocations: 205.9 kB / 0.4885 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.1155, allocations: 293.7 kB / 0.4888 GB, free: 476 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1155, allocations: 0 / 0.4888 GB, free: 476 kB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004311/0.116, allocations: 320.8 kB / 0.4891 GB, free: 148 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.116, allocations: 11.28 kB / 0.4891 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.116, allocations: 4.531 kB / 0.4891 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.116, allocations: 19.88 kB / 0.4891 GB, free: 116 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.1163, allocations: 83.91 kB / 0.4892 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.1163, allocations: 15.92 kB / 0.4892 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1626/0.2789, allocations: 27.78 kB / 0.4892 GB, free: 42.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.024e-05/0.279, allocations: 15.97 kB / 0.4892 GB, free: 42.28 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.2792, allocations: 148.8 kB / 0.4894 GB, free: 42.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.2794, allocations: 25.47 kB / 0.4894 GB, free: 42.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002232/0.2796, allocations: 91.89 kB / 0.4895 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.2796, allocations: 3.875 kB / 0.4895 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2796, allocations: 9.938 kB / 0.4895 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.2796, allocations: 0.8438 kB / 0.4895 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007172/0.2804, allocations: 307.1 kB / 0.4898 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2804, allocations: 2.312 kB / 0.4898 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003272/0.2807, allocations: 67.67 kB / 0.4899 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.2807, allocations: 4.969 kB / 0.4899 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.2808, allocations: 11.69 kB / 0.4899 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2808, allocations: 2.156 kB / 0.4899 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2808, allocations: 1.531 kB / 0.4899 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004524/0.2812, allocations: 0.631 MB / 0.4905 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.976e-05/0.2813, allocations: 101.3 kB / 0.4906 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.2813, allocations: 16.59 kB / 0.4906 GB, free: 41.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.2816, allocations: 6.25 kB / 0.4906 GB, free: 41.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.2817, allocations: 17.59 kB / 0.4906 GB, free: 41.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.2817, allocations: 5.656 kB / 0.4907 GB, free: 41.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.2818, allocations: 148.9 kB / 0.4908 GB, free: 41.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2818, allocations: 0 / 0.4908 GB, free: 41.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005193/0.2823, allocations: 77.97 kB / 0.4909 GB, free: 41.34 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005703/0.2829, allocations: 1.179 MB / 0.492 GB, free: 40.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.2832, allocations: 179.7 kB / 0.4922 GB, free: 40.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2832, allocations: 2.5 kB / 0.4922 GB, free: 40.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.2834, allocations: 75.34 kB / 0.4923 GB, free: 40.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.2842, allocations: 69.8 kB / 0.4923 GB, free: 40.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003025/0.2872, allocations: 2.318 MB / 0.4946 GB, free: 39.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.2875, allocations: 0.7737 MB / 0.4954 GB, free: 38.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.2877, allocations: 91.64 kB / 0.4954 GB, free: 38.34 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2877, allocations: 4 kB / 0.4954 GB, free: 38.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.542/2.829, allocations: 4.154 MB / 0.4995 GB, free: 37.98 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches