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.002399/0.002398, 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.191/2.191, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00167/0.00167, allocations: 94.62 kB / 267.5 MB, free: 14.11 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.2862/0.2862, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.727e-05/3.744e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1221, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.624, allocations: 91.45 MB / 0.5622 GB, free: 12.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.6243, allocations: 71.86 kB / 0.5623 GB, free: 12.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05795/0.6823, allocations: 11.93 MB / 0.5739 GB, free: 1.832 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6824, allocations: 4 kB / 0.5739 GB, free: 1.828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.886e-05/0.6824, allocations: 16 kB / 0.5739 GB, free: 1.812 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003175/0.6856, allocations: 0.9317 MB / 0.5748 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.6857, allocations: 8.031 kB / 0.5748 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002088/0.6859, allocations: 107.9 kB / 0.5749 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.6862, allocations: 79.06 kB / 0.575 GB, free: 0.707 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000853/0.687, allocations: 401.9 kB / 0.5754 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.127e-05/0.6871, allocations: 50.86 kB / 0.5754 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.6873, allocations: 69.91 kB / 0.5755 GB, free: 252 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.6892, allocations: 0.7364 MB / 0.5762 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.02e-05/0.6893, allocations: 11.89 kB / 0.5762 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.6894, allocations: 32.95 kB / 0.5763 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.632e-05/0.6895, allocations: 16 kB / 0.5763 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.6913, allocations: 0.6127 MB / 0.5769 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00702/0.6984, allocations: 2.585 MB / 0.5794 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.7001, allocations: 0.5634 MB / 0.58 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008722/0.701, allocations: 332.8 kB / 0.5803 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.7012, allocations: 15.98 kB / 0.5803 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.7012, allocations: 44.38 kB / 0.5803 GB, free: 12.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 3.937e-06/0.7012, allocations: 4 kB / 0.5803 GB, free: 12.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.007038/0.7083, allocations: 2.401 MB / 0.5827 GB, free: 10.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.7085, allocations: 147.6 kB / 0.5828 GB, free: 9.855 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006268/0.7091, allocations: 321 kB / 0.5831 GB, free: 9.586 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002273/0.7094, allocations: 54.69 kB / 0.5832 GB, free: 9.543 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.7096, allocations: 306.4 kB / 0.5835 GB, free: 9.289 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.7101, allocations: 281.7 kB / 0.5837 GB, free: 9.051 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.251e-05/0.7102, allocations: 27.61 kB / 0.5838 GB, free: 9.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.7104, allocations: 342.9 kB / 0.5841 GB, free: 8.711 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.7116, allocations: 313.5 kB / 0.5844 GB, free: 8.523 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.7127, allocations: 472.8 kB / 0.5849 GB, free: 8.145 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008737/0.7136, allocations: 263.7 kB / 0.5851 GB, free: 7.969 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.7136, allocations: 0 / 0.5851 GB, free: 7.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003988/0.7176, allocations: 1.09 MB / 0.5862 GB, free: 7.156 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.7177, allocations: 7 kB / 0.5862 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/0.7177, allocations: 12 kB / 0.5862 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/0.7197, allocations: 0.5957 MB / 0.5868 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.7208, allocations: 147.7 kB / 0.5869 GB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/0.724, allocations: 2.568 MB / 0.5894 GB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/0.7258, allocations: 200.7 kB / 0.5896 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.726, allocations: 45.55 kB / 0.5897 GB, free: 3.848 MB / 394.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 () * 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.0003496/0.7263, allocations: 160.8 kB / 0.5898 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.7266, allocations: 67.19 kB / 0.5899 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/0.7302, allocations: 1.022 MB / 0.5909 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/0.7302, allocations: 12 kB / 0.5909 GB, free: 2.887 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.7303, allocations: 3.953 kB / 0.5909 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.7303, allocations: 3.984 kB / 0.5909 GB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005638/0.7359, allocations: 2.022 MB / 0.5929 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.736, allocations: 0 / 0.5929 GB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.7372, allocations: 123.2 kB / 0.593 GB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/0.739, allocations: 0.5679 MB / 0.5935 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.7391, allocations: 30.58 kB / 0.5936 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.7423, allocations: 2.529 MB / 0.596 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.7423, allocations: 0 / 0.596 GB, free: 14.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.7467, allocations: 1.64 MB / 0.5976 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00055/0.7473, allocations: 211.6 kB / 0.5978 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.7475, allocations: 24.75 kB / 0.5979 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.7492, allocations: 189.9 kB / 0.598 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000569/0.7498, allocations: 171.9 kB / 0.5982 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.7499, allocations: 35.78 kB / 0.5982 GB, free: 12.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004746/0.7504, allocations: 260.5 kB / 0.5985 GB, free: 12.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7504, allocations: 0 / 0.5985 GB, free: 12.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001493/0.7519, allocations: 199.3 kB / 0.5987 GB, free: 11.95 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) * 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.005087/0.757, allocations: 2.575 MB / 0.6012 GB, free: 9.715 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.76, allocations: 0.9335 MB / 0.6021 GB, free: 9.008 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.7601, allocations: 0 / 0.6021 GB, free: 9.008 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.7617, allocations: 458.7 kB / 0.6025 GB, free: 8.695 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.7629, allocations: 90.53 kB / 0.6026 GB, free: 8.633 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008794/0.7717, allocations: 2.206 MB / 0.6048 GB, free: 6.535 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007172/0.7725, allocations: 0.926 MB / 0.6057 GB, free: 5.578 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000507/0.773, allocations: 216.3 kB / 0.6059 GB, free: 5.516 MB / 410.7 MB Notification: Performance of SimCode: time 1.031e-06/0.773, allocations: 0 / 0.6059 GB, free: 5.516 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.136/3.909, allocations: 18.88 MB / 0.6243 GB, free: 2.746 MB / 426.7 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