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.002234/0.002239, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001113, allocations: 94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3024/0.3024, allocations: 43.5 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.007e-05/2.013e-05, allocations: 224 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4117, allocations: 58.85 MB / 477.2 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.173/0.5847, allocations: 88.86 MB / 0.5528 GB, free: 10.43 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.585, allocations: 59.97 kB / 0.5528 GB, free: 10.38 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02828/0.6133, allocations: 6.059 MB / 0.5587 GB, free: 4.312 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6134, allocations: 8 kB / 0.5587 GB, free: 4.305 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.004e-05/0.6134, allocations: 7.984 kB / 0.5588 GB, free: 4.297 MB / 395.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.001097/0.6145, allocations: 0.5229 MB / 0.5593 GB, free: 3.73 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.6146, allocations: 8.031 kB / 0.5593 GB, free: 3.723 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000315/0.6149, allocations: 55.59 kB / 0.5593 GB, free: 3.668 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.6154, allocations: 262.4 kB / 0.5596 GB, free: 3.371 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.6154, allocations: 8 kB / 0.5596 GB, free: 3.363 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.121e-05/0.6155, allocations: 20 kB / 0.5596 GB, free: 3.344 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004903/0.616, allocations: 145.5 kB / 0.5597 GB, free: 3.203 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006272/0.6167, allocations: 246.8 kB / 0.56 GB, free: 2.934 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.487e-05/0.6167, allocations: 11.89 kB / 0.56 GB, free: 2.922 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.6168, allocations: 4 kB / 0.56 GB, free: 2.918 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.6168, allocations: 8 kB / 0.56 GB, free: 2.91 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.6197, allocations: 1.283 MB / 0.5613 GB, free: 1.535 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005708/0.6204, allocations: 225.4 kB / 0.5615 GB, free: 1.27 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.6205, allocations: 68.3 kB / 0.5615 GB, free: 1.188 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.6206, allocations: 4 kB / 0.5615 GB, free: 1.184 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.6206, allocations: 46.67 kB / 0.5616 GB, free: 1.129 MB / 395.1 MB Notification: Performance of pre-optimization done (n=22): time 3.417e-06/0.6206, allocations: 0 / 0.5616 GB, free: 1.129 MB / 395.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005721/0.6212, allocations: 149.4 kB / 0.5617 GB, free: 0.9766 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.428e-05/0.6213, allocations: 162.3 kB / 0.5619 GB, free: 0.7812 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.6216, allocations: 170 kB / 0.562 GB, free: 0.6094 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.6216, allocations: 25.7 kB / 0.5621 GB, free: 0.5781 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.6218, allocations: 246.2 kB / 0.5623 GB, free: 344 kB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.6219, allocations: 98.64 kB / 0.5624 GB, free: 244 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.622, allocations: 3.938 kB / 0.5624 GB, free: 240 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.6222, allocations: 326.9 kB / 0.5627 GB, free: 15.91 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.6223, allocations: 55.95 kB / 0.5628 GB, free: 15.85 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.6226, allocations: 186.6 kB / 0.5629 GB, free: 15.61 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.6229, allocations: 91.84 kB / 0.563 GB, free: 15.52 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.6229, allocations: 4 kB / 0.563 GB, free: 15.51 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007076/0.6236, allocations: 261.1 kB / 0.5633 GB, free: 15.25 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.6237, allocations: 8 kB / 0.5633 GB, free: 15.24 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.6237, allocations: 4 kB / 0.5633 GB, free: 15.24 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.305e-05/0.6237, allocations: 11.98 kB / 0.5633 GB, free: 15.23 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.6243, allocations: 83.84 kB / 0.5634 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.27e-05/0.6244, allocations: 4.531 kB / 0.5634 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.6247, allocations: 47.5 kB / 0.5634 GB, free: 15.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.6247, allocations: 16 kB / 0.5634 GB, free: 15.08 MB / 411.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 () * 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.0001339/0.6249, allocations: 112.9 kB / 0.5636 GB, free: 14.96 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000511/0.6254, allocations: 165.3 kB / 0.5637 GB, free: 14.79 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.6256, allocations: 19.72 kB / 0.5637 GB, free: 14.77 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002418/0.6258, allocations: 75.52 kB / 0.5638 GB, free: 14.7 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.6258, allocations: 4 kB / 0.5638 GB, free: 14.69 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.6259, allocations: 11.98 kB / 0.5638 GB, free: 14.68 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.6259, allocations: 0 / 0.5638 GB, free: 14.68 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008227/0.6267, allocations: 265.9 kB / 0.5641 GB, free: 14.38 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.6267, allocations: 0 / 0.5641 GB, free: 14.38 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.6274, allocations: 63.91 kB / 0.5641 GB, free: 14.32 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.224e-05/0.6275, allocations: 4 kB / 0.5641 GB, free: 14.32 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.6275, allocations: 4 kB / 0.5641 GB, free: 14.31 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.6275, allocations: 4.25 kB / 0.5641 GB, free: 14.31 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.6275, allocations: 3.984 kB / 0.5641 GB, free: 14.3 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008407/0.6284, allocations: 0.6633 MB / 0.5648 GB, free: 13.59 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.6285, allocations: 100.9 kB / 0.5649 GB, free: 13.48 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/0.6286, allocations: 7.984 kB / 0.5649 GB, free: 13.47 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.629, allocations: 4 kB / 0.5649 GB, free: 13.46 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/0.6291, allocations: 11.98 kB / 0.5649 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.6291, allocations: 8 kB / 0.5649 GB, free: 13.45 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.6293, allocations: 133.4 kB / 0.5651 GB, free: 13.32 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.72e-07/0.6293, allocations: 0 / 0.5651 GB, free: 13.32 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0007846/0.6301, allocations: 71.75 kB / 0.5651 GB, free: 13.25 MB / 411.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 () * 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.001302/0.6314, allocations: 1.487 MB / 0.5666 GB, free: 11.72 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.6319, allocations: 167.7 kB / 0.5667 GB, free: 11.55 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.632, allocations: 0 / 0.5667 GB, free: 11.55 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.6321, allocations: 72.92 kB / 0.5668 GB, free: 11.48 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008694/0.633, allocations: 44.03 kB / 0.5668 GB, free: 11.44 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.6361, allocations: 1.108 MB / 0.5679 GB, free: 10.27 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/0.6367, allocations: 0.7758 MB / 0.5687 GB, free: 9.469 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.6369, allocations: 95.39 kB / 0.5688 GB, free: 9.375 MB / 411.1 MB Notification: Performance of SimCode: time 1.253e-06/0.6369, allocations: 0 / 0.5688 GB, free: 9.375 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.437/3.074, allocations: 4.511 MB / 0.5732 GB, free: 4.867 MB / 411.1 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