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: 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",fileNamePrefix="ModelicaTest_3.2.3_cpp_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",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002015/0.002015, allocations: 181.4 kB / 17.41 MB, free: 4.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.628/2.628, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001429/0.001429, allocations: 89.42 kB / 271.9 MB, free: 8.258 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.643/0.643, allocations: 43.56 MB / 363.8 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006317/0.0006318, allocations: 12 kB / 432.6 MB, free: 5.902 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1889, allocations: 58.85 MB / 491.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.6921, allocations: 89.67 MB / 0.5675 GB, free: 12.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.6925, allocations: 71.95 kB / 0.5676 GB, free: 12.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02643/0.7189, allocations: 6.111 MB / 0.5735 GB, free: 6.617 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.719, allocations: 0 / 0.5735 GB, free: 6.617 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.719, allocations: 8 kB / 0.5735 GB, free: 6.609 MB / 394.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.00113/0.7202, allocations: 0.5452 MB / 0.5741 GB, free: 6.016 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.7202, allocations: 8.031 kB / 0.5741 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003078/0.7206, allocations: 52.45 kB / 0.5741 GB, free: 5.957 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.721, allocations: 266.6 kB / 0.5744 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.721, allocations: 25.03 kB / 0.5744 GB, free: 5.637 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-05/0.7211, allocations: 28.38 kB / 0.5744 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007404/0.7219, allocations: 311 kB / 0.5747 GB, free: 5.285 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.7219, allocations: 3.906 kB / 0.5747 GB, free: 5.281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.722, allocations: 16.2 kB / 0.5747 GB, free: 5.266 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.885e-05/0.722, allocations: 8 kB / 0.5748 GB, free: 5.258 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000513/0.7225, allocations: 179.8 kB / 0.5749 GB, free: 5.082 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.7254, allocations: 1.335 MB / 0.5762 GB, free: 3.645 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006235/0.726, allocations: 245.4 kB / 0.5765 GB, free: 3.359 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.7262, allocations: 88.25 kB / 0.5765 GB, free: 3.258 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.7262, allocations: 8 kB / 0.5766 GB, free: 3.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.7263, allocations: 42.5 kB / 0.5766 GB, free: 3.199 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 2.555e-06/0.7263, allocations: 0 / 0.5766 GB, free: 3.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004937/0.7268, allocations: 213.4 kB / 0.5768 GB, free: 2.984 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.405e-05/0.7268, allocations: 162.2 kB / 0.5769 GB, free: 2.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.7271, allocations: 216.2 kB / 0.5772 GB, free: 2.566 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.7271, allocations: 29.7 kB / 0.5772 GB, free: 2.531 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.7272, allocations: 184 kB / 0.5774 GB, free: 2.348 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.7273, allocations: 102.6 kB / 0.5775 GB, free: 2.246 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.7273, allocations: 4 kB / 0.5775 GB, free: 2.242 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.7274, allocations: 334.8 kB / 0.5778 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.7276, allocations: 59.98 kB / 0.5778 GB, free: 1.848 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.7278, allocations: 214.4 kB / 0.578 GB, free: 1.574 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.7282, allocations: 281.8 kB / 0.5783 GB, free: 1.234 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7282, allocations: 4 kB / 0.5783 GB, free: 1.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000468/0.7286, allocations: 325.1 kB / 0.5786 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.7287, allocations: 8 kB / 0.5786 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.7287, allocations: 4 kB / 0.5786 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.7287, allocations: 8 kB / 0.5786 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003442/0.7291, allocations: 87.84 kB / 0.5787 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.179e-05/0.7291, allocations: 11.98 kB / 0.5787 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.7293, allocations: 31.69 kB / 0.5788 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.7294, allocations: 16 kB / 0.5788 GB, free: 0.7422 MB / 394.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.0001619/0.7295, allocations: 161.8 kB / 0.5789 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.7297, allocations: 23.91 kB / 0.579 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000179/0.7299, allocations: 87.08 kB / 0.579 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.7299, allocations: 7.984 kB / 0.5791 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7299, allocations: 0 / 0.5791 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.7299, allocations: 0 / 0.5791 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/0.7306, allocations: 309.4 kB / 0.5793 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.7306, allocations: 0 / 0.5793 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000689/0.7313, allocations: 75.84 kB / 0.5794 GB, free: 28 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.7314, allocations: 7.984 kB / 0.5794 GB, free: 20 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.7314, allocations: 8 kB / 0.5794 GB, free: 12 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.331e-06/0.7314, allocations: 4 kB / 0.5794 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.7315, allocations: 0 / 0.5794 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008656/0.7323, allocations: 0.6354 MB / 0.5801 GB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.273e-05/0.7324, allocations: 96.83 kB / 0.5802 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.7325, allocations: 8 kB / 0.5802 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.733, allocations: 4 kB / 0.5802 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.303e-05/0.7331, allocations: 23.95 kB / 0.5802 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.7331, allocations: 8 kB / 0.5802 GB, free: 15.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002223/0.7334, allocations: 145.9 kB / 0.5803 GB, free: 15.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7334, allocations: 0 / 0.5803 GB, free: 15.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001006/0.7344, allocations: 87.69 kB / 0.5804 GB, free: 14.97 MB / 410.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.0001637/0.7346, allocations: 103.2 kB / 0.5805 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.7351, allocations: 187.6 kB / 0.5807 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.7351, allocations: 1.062 kB / 0.5807 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.7353, allocations: 79.83 kB / 0.5808 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.7368, allocations: 60.92 kB / 0.5808 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.7399, allocations: 1.402 MB / 0.5822 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.7404, allocations: 0.7758 MB / 0.583 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.7405, allocations: 27.44 kB / 0.583 GB, free: 12.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7406, allocations: 0 / 0.583 GB, free: 12.27 MB / 410.7 MB Notification: Performance of Templates: time 0.009936/0.7505, allocations: 3.316 MB / 0.5862 GB, free: 8.969 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.makefile (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 & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > 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