Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",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.001135/0.001135, allocations: 183.6 kB / 15.76 MB, free: 6.367 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.815/1.815, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009039/0.000904, allocations: 90.86 kB / 270.2 MB, free: 13.36 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.2341/0.2341, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003247/0.0003248, allocations: 8 kB / 431.5 MB, free: 19.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1403, allocations: 58.85 MB / 490.3 MB, free: 8.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.441/0.5815, allocations: 91.55 MB / 0.5682 GB, free: 8.262 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.5818, allocations: 67.38 kB / 0.5683 GB, free: 8.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03693/0.6187, allocations: 11.95 MB / 0.58 GB, free: 13.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.6188, allocations: 0 / 0.58 GB, free: 13.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.05e-05/0.6189, allocations: 20 kB / 0.58 GB, free: 13.93 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002962/0.6218, allocations: 0.996 MB / 0.581 GB, free: 12.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.6219, allocations: 15.97 kB / 0.581 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003022/0.6222, allocations: 105.1 kB / 0.5811 GB, free: 12.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/0.6225, allocations: 79.06 kB / 0.5812 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009105/0.6235, allocations: 410.9 kB / 0.5815 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-05/0.6236, allocations: 48 kB / 0.5816 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/0.6237, allocations: 59.06 kB / 0.5816 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.6254, allocations: 0.7944 MB / 0.5824 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.6255, allocations: 7.906 kB / 0.5824 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.184e-05/0.6256, allocations: 32.14 kB / 0.5825 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.6256, allocations: 16 kB / 0.5825 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.6271, allocations: 0.7197 MB / 0.5832 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0048/0.6319, allocations: 2.584 MB / 0.5857 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.6333, allocations: 0.6278 MB / 0.5863 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-05/0.6334, allocations: 19.92 kB / 0.5863 GB, free: 8.312 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.6335, allocations: 46.05 kB / 0.5864 GB, free: 8.266 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 3.447e-06/0.6335, allocations: 0 / 0.5864 GB, free: 8.266 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.008506/0.642, allocations: 3.684 MB / 0.59 GB, free: 4.855 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.463e-05/0.6421, allocations: 140.8 kB / 0.5901 GB, free: 4.688 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.6426, allocations: 320.7 kB / 0.5904 GB, free: 4.426 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.6427, allocations: 59.12 kB / 0.5905 GB, free: 4.379 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.6429, allocations: 263.7 kB / 0.5907 GB, free: 4.172 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/0.6432, allocations: 283.2 kB / 0.591 GB, free: 3.934 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/0.6432, allocations: 18.94 kB / 0.591 GB, free: 3.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.6434, allocations: 367.1 kB / 0.5914 GB, free: 3.586 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007352/0.6441, allocations: 370.6 kB / 0.5917 GB, free: 3.344 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008508/0.645, allocations: 0.5083 MB / 0.5922 GB, free: 2.918 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.6457, allocations: 307.8 kB / 0.5925 GB, free: 2.723 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.6457, allocations: 0 / 0.5925 GB, free: 2.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002638/0.6483, allocations: 1.23 MB / 0.5937 GB, free: 1.797 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.6484, allocations: 10.5 kB / 0.5937 GB, free: 1.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.179e-05/0.6484, allocations: 8 kB / 0.5937 GB, free: 1.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.6496, allocations: 0.6118 MB / 0.5943 GB, free: 1.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.6502, allocations: 155.3 kB / 0.5945 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.6525, allocations: 2.574 MB / 0.597 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.6536, allocations: 194.1 kB / 0.5972 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.6537, allocations: 50.03 kB / 0.5972 GB, free: 14.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004776/0.6542, allocations: 215.4 kB / 0.5974 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.6544, allocations: 67.2 kB / 0.5975 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/0.657, allocations: 1.132 MB / 0.5986 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.657, allocations: 8 kB / 0.5986 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.657, allocations: 4 kB / 0.5986 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.657, allocations: 7.938 kB / 0.5986 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.6609, allocations: 2.117 MB / 0.6007 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.6609, allocations: 0 / 0.6007 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005687/0.6615, allocations: 127.7 kB / 0.6008 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.6627, allocations: 0.5742 MB / 0.6014 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.714e-05/0.6628, allocations: 35.58 kB / 0.6014 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002224/0.665, allocations: 2.531 MB / 0.6039 GB, free: 8.598 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.665, allocations: 4.031 kB / 0.6039 GB, free: 8.594 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/0.6682, allocations: 1.781 MB / 0.6056 GB, free: 7.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004744/0.6687, allocations: 209 kB / 0.6058 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.6688, allocations: 28.56 kB / 0.6058 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008579/0.6697, allocations: 179 kB / 0.606 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/0.67, allocations: 171.3 kB / 0.6062 GB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.141e-05/0.6701, allocations: 42.5 kB / 0.6062 GB, free: 6.609 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003429/0.6705, allocations: 263.1 kB / 0.6065 GB, free: 6.398 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6705, allocations: 4 kB / 0.6065 GB, free: 6.395 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000902/0.6714, allocations: 197.7 kB / 0.6067 GB, free: 6.227 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00399/0.6754, allocations: 2.725 MB / 0.6093 GB, free: 3.867 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.6777, allocations: 1.025 MB / 0.6103 GB, free: 3.066 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6778, allocations: 4 kB / 0.6103 GB, free: 3.062 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.679, allocations: 0.5165 MB / 0.6108 GB, free: 2.684 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008365/0.6799, allocations: 89.78 kB / 0.6109 GB, free: 2.625 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.6908, allocations: 7.974 MB / 0.6187 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.6915, allocations: 0.9221 MB / 0.6196 GB, free: 10.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003315/0.6918, allocations: 56.83 kB / 0.6196 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.6921, allocations: 211.6 kB / 0.6199 GB, free: 10.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.804e-06/0.6921, allocations: 0 / 0.6199 GB, free: 10.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03851/0.7306, allocations: 18.28 MB / 0.6377 GB, free: 7.992 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.7309, allocations: 201 kB / 0.6379 GB, free: 7.746 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.544/3.275, allocations: 0 / 0.6379 GB, free: 7.746 MB / 442.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat