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.001548/0.001548, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.133/2.133, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001127/0.001127, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3846/0.3846, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.855e-05, allocations: 0 / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1228, allocations: 58.85 MB / 484.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4917/0.6145, allocations: 89.52 MB / 0.5603 GB, free: 13.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.6148, allocations: 69.25 kB / 0.5604 GB, free: 13.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02741/0.6423, allocations: 6.095 MB / 0.5663 GB, free: 8.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6423, allocations: 0 / 0.5663 GB, free: 8.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.238e-05/0.6423, allocations: 11.98 kB / 0.5663 GB, free: 8.586 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.001054/0.6434, allocations: 0.5276 MB / 0.5668 GB, free: 8.035 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.6435, allocations: 12.03 kB / 0.5669 GB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.464e-05/0.6436, allocations: 63.91 kB / 0.5669 GB, free: 7.969 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.6439, allocations: 47.61 kB / 0.567 GB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.6443, allocations: 263.8 kB / 0.5672 GB, free: 7.641 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.6444, allocations: 23.34 kB / 0.5672 GB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.206e-05/0.6445, allocations: 33.42 kB / 0.5673 GB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.6452, allocations: 298 kB / 0.5676 GB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.6452, allocations: 7.906 kB / 0.5676 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.6453, allocations: 18.06 kB / 0.5676 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.6453, allocations: 4 kB / 0.5676 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004866/0.6458, allocations: 163.3 kB / 0.5677 GB, free: 7.234 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/0.6487, allocations: 1.346 MB / 0.569 GB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.6493, allocations: 245.2 kB / 0.5693 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.6495, allocations: 75.58 kB / 0.5694 GB, free: 5.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.6496, allocations: 8 kB / 0.5694 GB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.6496, allocations: 45.97 kB / 0.5694 GB, free: 5.586 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.296e-06/0.6496, allocations: 0 / 0.5694 GB, free: 5.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006133/0.6503, allocations: 163.7 kB / 0.5696 GB, free: 5.445 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.6504, allocations: 173.5 kB / 0.5697 GB, free: 5.242 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.6507, allocations: 185.6 kB / 0.5699 GB, free: 5.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.6507, allocations: 28.95 kB / 0.5699 GB, free: 5.039 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.6509, allocations: 249.6 kB / 0.5702 GB, free: 4.816 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.651, allocations: 91.66 kB / 0.5703 GB, free: 4.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-05/0.651, allocations: 6.375 kB / 0.5703 GB, free: 4.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.6512, allocations: 322.3 kB / 0.5706 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.6513, allocations: 61.06 kB / 0.5706 GB, free: 4.379 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.6517, allocations: 210.9 kB / 0.5708 GB, free: 4.141 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.6519, allocations: 99.72 kB / 0.5709 GB, free: 4.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.652, allocations: 0 / 0.5709 GB, free: 4.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007107/0.6527, allocations: 296.1 kB / 0.5712 GB, free: 3.836 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.6527, allocations: 8 kB / 0.5712 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.6527, allocations: 4 kB / 0.5712 GB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.91e-05/0.6528, allocations: 8 kB / 0.5712 GB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000622/0.6534, allocations: 91.78 kB / 0.5713 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.6534, allocations: 11.94 kB / 0.5713 GB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003108/0.6538, allocations: 39.72 kB / 0.5714 GB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.6538, allocations: 19.58 kB / 0.5714 GB, free: 3.668 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 () * 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.0001363/0.654, allocations: 133.8 kB / 0.5715 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.6541, allocations: 23.72 kB / 0.5715 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.6544, allocations: 84.08 kB / 0.5716 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.6544, allocations: 7.938 kB / 0.5716 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.6544, allocations: 3.953 kB / 0.5716 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.6544, allocations: 4 kB / 0.5716 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.6553, allocations: 315.9 kB / 0.5719 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.6553, allocations: 4 kB / 0.5719 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000686/0.656, allocations: 63.53 kB / 0.572 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.656, allocations: 4 kB / 0.572 GB, free: 3.055 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.6561, allocations: 11.81 kB / 0.572 GB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.6561, allocations: 0 / 0.572 GB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6561, allocations: 3.938 kB / 0.572 GB, free: 3.043 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008468/0.657, allocations: 0.6717 MB / 0.5727 GB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.6571, allocations: 100.8 kB / 0.5728 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.6572, allocations: 7.938 kB / 0.5728 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003823/0.6576, allocations: 7.562 kB / 0.5728 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.6577, allocations: 19.91 kB / 0.5728 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.6577, allocations: 11.44 kB / 0.5728 GB, free: 2.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001927/0.6579, allocations: 147.7 kB / 0.573 GB, free: 2.105 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6579, allocations: 0 / 0.573 GB, free: 2.105 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007412/0.6587, allocations: 90.38 kB / 0.573 GB, free: 2.027 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 () * 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.001374/0.66, allocations: 1.497 MB / 0.5745 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000546/0.6606, allocations: 178 kB / 0.5747 GB, free: 420 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.6607, allocations: 3.75 kB / 0.5747 GB, free: 420 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.6608, allocations: 69.25 kB / 0.5747 GB, free: 364 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.6617, allocations: 56.55 kB / 0.5748 GB, free: 320 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.665, allocations: 1.13 MB / 0.5759 GB, free: 15.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.6655, allocations: 0.7758 MB / 0.5767 GB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.6657, allocations: 89.66 kB / 0.5767 GB, free: 14.35 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6657, allocations: 0 / 0.5767 GB, free: 14.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.427/3.093, allocations: 4.559 MB / 0.5812 GB, free: 9.852 MB / 394.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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat