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.001616/0.001615, allocations: 183.9 kB / 16.4 MB, free: 5.754 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.162/2.162, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001184/0.001183, allocations: 92.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5348/0.5348, allocations: 43.57 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.0004786, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1428, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005698/0.1486, allocations: 3.172 MB / 493.5 MB, free: 7.945 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003673/0.1523, allocations: 1.275 MB / 494.8 MB, free: 6.664 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006185/0.153, allocations: 11.94 kB / 494.8 MB, free: 6.652 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.1533, allocations: 79.39 kB / 494.8 MB, free: 6.574 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009568/0.1543, allocations: 251.3 kB / 495.1 MB, free: 6.328 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.1554, allocations: 247.6 kB / 495.3 MB, free: 6.086 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.1569, allocations: 0.6378 MB / 496 MB, free: 5.441 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004063/0.1574, allocations: 140.9 kB / 496.1 MB, free: 5.297 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009024/0.1583, allocations: 378.8 kB / 496.5 MB, free: 4.926 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008668/0.1592, allocations: 442.4 kB / 496.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.1594, allocations: 40 kB / 496.9 MB, free: 4.453 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003298/0.1597, allocations: 79.91 kB / 497 MB, free: 4.375 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002536/0.16, allocations: 163.4 kB / 497.2 MB, free: 4.215 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.1602, allocations: 141.3 kB / 497.3 MB, free: 4.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1613, allocations: 0.6431 MB / 498 MB, free: 3.426 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1614, allocations: 0 / 498 MB, free: 3.426 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1614, allocations: 0 / 498 MB, free: 3.426 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.1614, allocations: 4 kB / 498 MB, free: 3.422 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.003553/0.165, allocations: 1.001 MB / 499 MB, free: 2.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.165, allocations: 12.03 kB / 499 MB, free: 2.355 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002756/0.1653, allocations: 102.5 kB / 499.1 MB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.1656, allocations: 79.05 kB / 499.2 MB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009303/0.1665, allocations: 416.7 kB / 499.6 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.1666, allocations: 49.25 kB / 499.6 MB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.1668, allocations: 67.97 kB / 499.7 MB, free: 1.609 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/0.1694, allocations: 0.8372 MB / 0.4888 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.554e-05/0.1695, allocations: 7.906 kB / 0.4888 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.1697, allocations: 27.95 kB / 0.4888 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.1697, allocations: 16 kB / 0.4888 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.33/0.4997, allocations: 0.788 MB / 0.4896 GB, free: 42.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007852/0.5076, allocations: 2.625 MB / 0.4922 GB, free: 41.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.5102, allocations: 0.644 MB / 0.4928 GB, free: 41.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.5104, allocations: 9.609 kB / 0.4928 GB, free: 41.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.5104, allocations: 45 kB / 0.4929 GB, free: 41.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 4.208e-06/0.5104, allocations: 2.188 kB / 0.4929 GB, free: 41.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.01422/0.5247, allocations: 3.727 MB / 0.4965 GB, free: 40.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.5248, allocations: 137.6 kB / 0.4966 GB, free: 39.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/0.5255, allocations: 425.6 kB / 0.497 GB, free: 39.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002433/0.5258, allocations: 50.92 kB / 0.4971 GB, free: 39.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.5261, allocations: 330.5 kB / 0.4974 GB, free: 39.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003096/0.5264, allocations: 265.7 kB / 0.4976 GB, free: 39.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.539e-05/0.5265, allocations: 17.38 kB / 0.4977 GB, free: 39.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.5266, allocations: 349.7 kB / 0.498 GB, free: 39.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.5281, allocations: 401.2 kB / 0.4984 GB, free: 39.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.5298, allocations: 0.5598 MB / 0.4989 GB, free: 38.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.5312, allocations: 340.4 kB / 0.4993 GB, free: 38.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.5312, allocations: 1.562 kB / 0.4993 GB, free: 38.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004457/0.5357, allocations: 1.255 MB / 0.5005 GB, free: 38.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.5358, allocations: 7.969 kB / 0.5005 GB, free: 38.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.5358, allocations: 9.562 kB / 0.5005 GB, free: 38.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002174/0.538, allocations: 0.7554 MB / 0.5012 GB, free: 38.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.5392, allocations: 160.3 kB / 0.5014 GB, free: 38.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.5423, allocations: 2.699 MB / 0.504 GB, free: 35.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.5442, allocations: 191.9 kB / 0.5042 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.5444, allocations: 45.75 kB / 0.5042 GB, free: 35.9 MB / 378.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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005212/0.5449, allocations: 209.4 kB / 0.5044 GB, free: 35.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002504/0.5452, allocations: 61.09 kB / 0.5045 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.5454, allocations: 85.05 kB / 0.5046 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.5454, allocations: 12.2 kB / 0.5046 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.858e-05/0.5455, allocations: 4.516 kB / 0.5046 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.5455, allocations: 4.703 kB / 0.5046 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006882/0.5524, allocations: 2.196 MB / 0.5068 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.5525, allocations: 0.5625 kB / 0.5068 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.5536, allocations: 129.1 kB / 0.5069 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.5557, allocations: 0.7147 MB / 0.5076 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/0.5559, allocations: 30.45 kB / 0.5076 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/0.5589, allocations: 2.651 MB / 0.5102 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5589, allocations: 0 / 0.5102 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.5647, allocations: 1.855 MB / 0.512 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005588/0.5653, allocations: 214.8 kB / 0.5122 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.5655, allocations: 25.78 kB / 0.5122 GB, free: 30.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.5671, allocations: 171 kB / 0.5124 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005626/0.5677, allocations: 170.2 kB / 0.5126 GB, free: 30.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5679, allocations: 36.88 kB / 0.5126 GB, free: 30.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004411/0.5683, allocations: 288.2 kB / 0.5129 GB, free: 30.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5683, allocations: 0 / 0.5129 GB, free: 30.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001199/0.5695, allocations: 201.9 kB / 0.5131 GB, free: 30.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.005795/0.5753, allocations: 2.639 MB / 0.5156 GB, free: 28.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00349/0.5789, allocations: 0.9706 MB / 0.5166 GB, free: 28.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.579, allocations: 4.438 kB / 0.5166 GB, free: 28.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.581, allocations: 0.5085 MB / 0.5171 GB, free: 28.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.5824, allocations: 98.02 kB / 0.5172 GB, free: 28.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/0.5994, allocations: 8.192 MB / 0.5252 GB, free: 22.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.6, allocations: 0.9299 MB / 0.5261 GB, free: 22.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005232/0.6005, allocations: 211.3 kB / 0.5263 GB, free: 22.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6005, allocations: 2.875 kB / 0.5263 GB, free: 22.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.238/3.839, allocations: 18.75 MB / 0.5446 GB, free: 17.01 MB / 378.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