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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 107.4 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 189.5 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2202/0.2202, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002806/0.002806, allocations: 69.47 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1548, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006704/0.1615, allocations: 3.935 MB / 0.4912 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.165, allocations: 1.278 MB / 0.4925 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007741/0.1658, allocations: 12 kB / 0.4925 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005687/0.1664, allocations: 110.8 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008823/0.1674, allocations: 210.2 kB / 0.4928 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.1685, allocations: 335.4 kB / 0.4931 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.1701, allocations: 1.038 MB / 0.4941 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004583/0.1706, allocations: 182.3 kB / 0.4943 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009746/0.1716, allocations: 446.6 kB / 0.4947 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008183/0.1724, allocations: 494.2 kB / 0.4952 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002166/0.1726, allocations: 76 kB / 0.4953 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.173, allocations: 127.9 kB / 0.4954 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.1733, allocations: 199.4 kB / 0.4956 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006811/0.174, allocations: 402 kB / 0.496 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.1753, allocations: 0.9416 MB / 0.4969 GB, free: 2.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.1753, allocations: 3.984 kB / 0.4969 GB, free: 2.508 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1754, allocations: 0 / 0.4969 GB, free: 2.508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.036e-05/0.1754, allocations: 0 / 0.4969 GB, free: 2.508 MB / 382.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.003177/0.1786, allocations: 1.098 MB / 0.498 GB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.1787, allocations: 15.89 kB / 0.498 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002521/0.1789, allocations: 110.6 kB / 0.4981 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.1792, allocations: 80.42 kB / 0.4982 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.1804, allocations: 450 kB / 0.4986 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.115e-05/0.1806, allocations: 49.44 kB / 0.4986 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/0.1807, allocations: 63.95 kB / 0.4987 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.1825, allocations: 0.8257 MB / 0.4995 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.169e-05/0.1825, allocations: 11.95 kB / 0.4995 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.061e-05/0.1826, allocations: 20 kB / 0.4995 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.1826, allocations: 16 kB / 0.4995 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.1844, allocations: 0.7697 MB / 0.5003 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004888/0.1893, allocations: 2.558 MB / 0.5028 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.1908, allocations: 0.6385 MB / 0.5034 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008047/0.1916, allocations: 375.3 kB / 0.5038 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.388e-05/0.1917, allocations: 15.98 kB / 0.5038 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.1917, allocations: 47.25 kB / 0.5038 GB, free: 11.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.675e-06/0.1917, allocations: 0 / 0.5038 GB, free: 11.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=76): time 0.008498/0.2002, allocations: 3.556 MB / 0.5073 GB, free: 7.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.2004, allocations: 140.5 kB / 0.5074 GB, free: 7.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005556/0.2009, allocations: 421.8 kB / 0.5079 GB, free: 6.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.2011, allocations: 53.69 kB / 0.5079 GB, free: 6.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.2013, allocations: 292.9 kB / 0.5082 GB, free: 6.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.2016, allocations: 273.8 kB / 0.5084 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.2019, allocations: 174.5 kB / 0.5086 GB, free: 5.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.2021, allocations: 374.8 kB / 0.509 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008589/0.203, allocations: 385.8 kB / 0.5093 GB, free: 5.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000983/0.204, allocations: 0.5485 MB / 0.5099 GB, free: 4.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.2055, allocations: 0.7452 MB / 0.5106 GB, free: 3.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.2055, allocations: 0 / 0.5106 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002993/0.2085, allocations: 1.281 MB / 0.5118 GB, free: 2.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.2085, allocations: 11.94 kB / 0.5119 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.2085, allocations: 4 kB / 0.5119 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.2101, allocations: 0.7568 MB / 0.5126 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/0.2107, allocations: 151.8 kB / 0.5127 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.2134, allocations: 2.694 MB / 0.5154 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009359/0.2144, allocations: 139.9 kB / 0.5155 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.2145, allocations: 39.92 kB / 0.5155 GB, free: 14.52 MB / 414.1 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004254/0.2149, allocations: 216.1 kB / 0.5158 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.2152, allocations: 71.58 kB / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.2154, allocations: 91.91 kB / 0.5159 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.2155, allocations: 8 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.2155, allocations: 4 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.2155, allocations: 3.984 kB / 0.5159 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004444/0.2199, allocations: 2.165 MB / 0.518 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.22, allocations: 3.938 kB / 0.518 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005802/0.2206, allocations: 111.9 kB / 0.5182 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.2218, allocations: 0.7254 MB / 0.5189 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/0.2219, allocations: 31.95 kB / 0.5189 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002551/0.2245, allocations: 2.643 MB / 0.5215 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.2245, allocations: 4.031 kB / 0.5215 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.2279, allocations: 1.772 MB / 0.5232 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.2283, allocations: 216.5 kB / 0.5234 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.2285, allocations: 28 kB / 0.5234 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009299/0.2294, allocations: 119.8 kB / 0.5236 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004267/0.2299, allocations: 151.7 kB / 0.5237 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.23, allocations: 35.95 kB / 0.5237 GB, free: 5.879 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004438/0.2304, allocations: 291.1 kB / 0.524 GB, free: 5.598 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2304, allocations: 0 / 0.524 GB, free: 5.598 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009107/0.2313, allocations: 199.9 kB / 0.5242 GB, free: 5.402 MB / 414.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004156/0.2355, allocations: 2.371 MB / 0.5265 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.2379, allocations: 0.9508 MB / 0.5274 GB, free: 2.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.238, allocations: 0 / 0.5274 GB, free: 2.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.2393, allocations: 0.5121 MB / 0.5279 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2405, allocations: 119.6 kB / 0.5281 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3093/0.5498, allocations: 7.424 MB / 0.5353 GB, free: 39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/0.5503, allocations: 0.9032 MB / 0.5362 GB, free: 38.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000332/0.5506, allocations: 64.08 kB / 0.5363 GB, free: 38.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.551, allocations: 215.1 kB / 0.5365 GB, free: 38.28 MB / 414.1 MB Notification: Performance of SimCode: time 1.383e-06/0.551, allocations: 0 / 0.5365 GB, free: 38.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06047/0.6115, allocations: 21.18 MB / 0.5571 GB, free: 30.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.38, allocations: 3.969 kB / 0.5571 GB, free: 30.89 MB / 414.1 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches