Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002184/0.002184, allocations: 177.8 kB / 8.36 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.172/2.172, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001853/0.001853, allocations: 95.14 kB / 262.1 MB, free: 13.86 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.4099/0.4099, allocations: 43.48 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.976e-05/1.973e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4113, allocations: 58.85 MB / 477.2 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1724/0.5838, allocations: 90.79 MB / 0.5546 GB, free: 8.504 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.5841, allocations: 67.97 kB / 0.5547 GB, free: 8.438 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05676/0.6409, allocations: 11.85 MB / 0.5663 GB, free: 12.55 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6409, allocations: 0 / 0.5663 GB, free: 12.55 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.397e-05/0.641, allocations: 12 kB / 0.5663 GB, free: 12.54 MB / 411.1 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.003365/0.6444, allocations: 0.9434 MB / 0.5672 GB, free: 11.55 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.6444, allocations: 12.03 kB / 0.5672 GB, free: 11.54 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.6447, allocations: 79.06 kB / 0.5673 GB, free: 11.46 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.6456, allocations: 402.9 kB / 0.5677 GB, free: 11.03 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.389e-05/0.6457, allocations: 24 kB / 0.5677 GB, free: 11.01 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.6459, allocations: 39.91 kB / 0.5677 GB, free: 10.97 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001728/0.6476, allocations: 0.5726 MB / 0.5683 GB, free: 10.39 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.6494, allocations: 0.6593 MB / 0.569 GB, free: 9.699 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/0.6495, allocations: 7.906 kB / 0.569 GB, free: 9.691 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.6496, allocations: 11.94 kB / 0.569 GB, free: 9.68 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.6496, allocations: 12 kB / 0.569 GB, free: 9.668 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0069/0.6565, allocations: 2.465 MB / 0.5714 GB, free: 7.094 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.6582, allocations: 0.557 MB / 0.5719 GB, free: 6.504 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007711/0.659, allocations: 315.2 kB / 0.5722 GB, free: 6.184 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.6591, allocations: 8 kB / 0.5722 GB, free: 6.176 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.6592, allocations: 50.55 kB / 0.5723 GB, free: 6.117 MB / 411.1 MB Notification: Performance of pre-optimization done (n=78): time 3.968e-06/0.6592, allocations: 0 / 0.5723 GB, free: 6.117 MB / 411.1 MB Notification: Performance of matching and sorting (n=82): time 0.007024/0.6662, allocations: 2.316 MB / 0.5746 GB, free: 3.605 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.6663, allocations: 144.5 kB / 0.5747 GB, free: 3.434 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005098/0.6669, allocations: 305.1 kB / 0.575 GB, free: 3.133 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.667, allocations: 37.69 kB / 0.575 GB, free: 3.09 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.6673, allocations: 299.1 kB / 0.5753 GB, free: 2.793 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003576/0.6676, allocations: 272.2 kB / 0.5756 GB, free: 2.523 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.016e-05/0.6677, allocations: 3.938 kB / 0.5756 GB, free: 2.52 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.6679, allocations: 358.8 kB / 0.5759 GB, free: 2.16 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000845/0.6688, allocations: 294.5 kB / 0.5762 GB, free: 1.871 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.6698, allocations: 451.1 kB / 0.5766 GB, free: 1.375 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.6709, allocations: 269.9 kB / 0.5769 GB, free: 1.113 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.6709, allocations: 0 / 0.5769 GB, free: 1.113 MB / 411.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003916/0.6748, allocations: 1.027 MB / 0.5779 GB, free: 76 kB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.6749, allocations: 11.98 kB / 0.5779 GB, free: 64 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.553e-05/0.6749, allocations: 4 kB / 0.5779 GB, free: 60 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/0.6768, allocations: 0.5811 MB / 0.5785 GB, free: 15.46 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.6779, allocations: 147.8 kB / 0.5786 GB, free: 15.32 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.6815, allocations: 2.651 MB / 0.5812 GB, free: 12.57 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.6833, allocations: 183.9 kB / 0.5814 GB, free: 12.39 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.6835, allocations: 39.98 kB / 0.5814 GB, free: 12.35 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0004114/0.6839, allocations: 148 kB / 0.5815 GB, free: 12.2 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003541/0.6875, allocations: 0.8759 MB / 0.5824 GB, free: 11.3 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.6878, allocations: 55.34 kB / 0.5825 GB, free: 11.25 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/0.6916, allocations: 0.9802 MB / 0.5834 GB, free: 10.23 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.6917, allocations: 8 kB / 0.5834 GB, free: 10.22 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.6917, allocations: 0 / 0.5834 GB, free: 10.22 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.6917, allocations: 7.984 kB / 0.5834 GB, free: 10.21 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006122/0.6979, allocations: 1.9 MB / 0.5853 GB, free: 8.25 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/0.6979, allocations: 4 kB / 0.5853 GB, free: 8.246 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.6991, allocations: 123.9 kB / 0.5854 GB, free: 8.125 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00178/0.7009, allocations: 0.5576 MB / 0.5859 GB, free: 7.555 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/0.7011, allocations: 23.95 kB / 0.586 GB, free: 7.531 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003532/0.7047, allocations: 2.588 MB / 0.5885 GB, free: 4.84 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.7047, allocations: 0 / 0.5885 GB, free: 4.84 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/0.7093, allocations: 1.586 MB / 0.59 GB, free: 3.188 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000605/0.7099, allocations: 212.3 kB / 0.5903 GB, free: 2.961 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.7102, allocations: 16 kB / 0.5903 GB, free: 2.945 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.7119, allocations: 163.8 kB / 0.5904 GB, free: 2.785 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005807/0.7125, allocations: 171.5 kB / 0.5906 GB, free: 2.617 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.7127, allocations: 47.91 kB / 0.5906 GB, free: 2.57 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0004145/0.7131, allocations: 243 kB / 0.5909 GB, free: 2.336 MB / 427.1 MB Notification: Performance of sort global known variables: time 2.525e-06/0.7131, allocations: 0 / 0.5909 GB, free: 2.336 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001427/0.7145, allocations: 175.9 kB / 0.591 GB, free: 2.164 MB / 427.1 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) * 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.005496/0.7201, allocations: 2.503 MB / 0.5935 GB, free: 15.59 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.7229, allocations: 0.8784 MB / 0.5943 GB, free: 14.69 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.7229, allocations: 0 / 0.5943 GB, free: 14.69 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.7246, allocations: 444.3 kB / 0.5948 GB, free: 14.25 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.7259, allocations: 86.23 kB / 0.5948 GB, free: 14.17 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009138/0.7351, allocations: 2.133 MB / 0.5969 GB, free: 11.97 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007504/0.7359, allocations: 0.9224 MB / 0.5978 GB, free: 11.02 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005768/0.7365, allocations: 211.3 kB / 0.598 GB, free: 10.82 MB / 443.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7365, allocations: 0 / 0.598 GB, free: 10.82 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.079/3.816, allocations: 18.86 MB / 0.6164 GB, free: 7.953 MB / 459.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat