Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001765/0.001765, allocations: 117 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002119/0.002119, allocations: 212.7 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 230.4 MB / 254.7 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2382/0.2382, allocations: 46.93 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 75.89 kB / 0.4916 GB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1312, allocations: 66.05 MB / 0.5561 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005889/0.1371, allocations: 4.139 MB / 0.5602 GB, free: 1.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002968/0.14, allocations: 1.481 MB / 0.5616 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004313/0.1405, allocations: 15.88 kB / 0.5616 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004417/0.1409, allocations: 138.8 kB / 0.5618 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006951/0.1416, allocations: 285.9 kB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1423, allocations: 343.4 kB / 0.5624 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1436, allocations: 1.096 MB / 0.5634 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.1439, allocations: 138.5 kB / 0.5636 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007203/0.1446, allocations: 494.5 kB / 0.564 GB, free: 13.4 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007167/0.1453, allocations: 0.5215 MB / 0.5646 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.1455, allocations: 84 kB / 0.5646 GB, free: 12.79 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.1458, allocations: 139.9 kB / 0.5648 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.146, allocations: 227.3 kB / 0.565 GB, free: 12.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004222/0.1465, allocations: 429.8 kB / 0.5654 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.1477, allocations: 1.035 MB / 0.5664 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1477, allocations: 0 / 0.5664 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1477, allocations: 3.938 kB / 0.5664 GB, free: 10.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1477, allocations: 0 / 0.5664 GB, free: 10.97 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002479/0.1502, allocations: 1.179 MB / 0.5676 GB, free: 9.738 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1502, allocations: 12.03 kB / 0.5676 GB, free: 9.727 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.053e-05/0.1503, allocations: 21.44 kB / 0.5676 GB, free: 9.703 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.1504, allocations: 102.7 kB / 0.5677 GB, free: 9.594 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005513/0.151, allocations: 132.3 kB / 0.5678 GB, free: 9.465 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000774/0.1518, allocations: 481.9 kB / 0.5683 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.4e-05/0.1518, allocations: 57.19 kB / 0.5683 GB, free: 8.898 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.152, allocations: 67.95 kB / 0.5684 GB, free: 8.832 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.1536, allocations: 0.8107 MB / 0.5692 GB, free: 7.988 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.1536, allocations: 11.94 kB / 0.5692 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.1537, allocations: 28 kB / 0.5692 GB, free: 7.949 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.1537, allocations: 16 kB / 0.5692 GB, free: 7.934 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.1555, allocations: 0.7317 MB / 0.57 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004772/0.1602, allocations: 2.587 MB / 0.5725 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.1618, allocations: 0.6283 MB / 0.5731 GB, free: 3.832 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007918/0.1626, allocations: 343.3 kB / 0.5734 GB, free: 3.484 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.511e-05/0.1627, allocations: 19.98 kB / 0.5734 GB, free: 3.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.606e-05/0.1627, allocations: 42.75 kB / 0.5735 GB, free: 3.414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=79): time 2.866e-06/0.1627, allocations: 0 / 0.5735 GB, free: 3.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=83): time 0.008775/0.1715, allocations: 3.547 MB / 0.5769 GB, free: 15.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.713e-05/0.1716, allocations: 136.5 kB / 0.5771 GB, free: 15.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006415/0.1722, allocations: 477.9 kB / 0.5775 GB, free: 14.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.1724, allocations: 57.69 kB / 0.5776 GB, free: 14.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002362/0.1726, allocations: 289.1 kB / 0.5779 GB, free: 14.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.1729, allocations: 309.5 kB / 0.5782 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000325/0.1732, allocations: 174.5 kB / 0.5783 GB, free: 14.13 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1734, allocations: 370.8 kB / 0.5787 GB, free: 13.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008665/0.1743, allocations: 365.8 kB / 0.579 GB, free: 13.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.1753, allocations: 0.5138 MB / 0.5795 GB, free: 12.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.1768, allocations: 0.6969 MB / 0.5802 GB, free: 12.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.1768, allocations: 4 kB / 0.5802 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003043/0.1799, allocations: 1.183 MB / 0.5814 GB, free: 10.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.1799, allocations: 13.75 kB / 0.5814 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1799, allocations: 4 kB / 0.5814 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.1813, allocations: 0.5888 MB / 0.582 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005944/0.1819, allocations: 143.8 kB / 0.5821 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004339/0.1863, allocations: 3.844 MB / 0.5859 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.1874, allocations: 143.9 kB / 0.586 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.891e-05/0.1874, allocations: 35.98 kB / 0.586 GB, free: 5.879 MB / 446.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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,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 (88): * Single equations (assignments): 84 * 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,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004015/0.1879, allocations: 228.3 kB / 0.5862 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/0.1881, allocations: 71.53 kB / 0.5863 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.1883, allocations: 100.8 kB / 0.5864 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.1883, allocations: 8 kB / 0.5864 GB, free: 5.473 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1883, allocations: 3.984 kB / 0.5864 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.1883, allocations: 7.984 kB / 0.5864 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004341/0.1927, allocations: 2.149 MB / 0.5885 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1927, allocations: 0 / 0.5885 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005901/0.1933, allocations: 115.8 kB / 0.5886 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001247/0.1945, allocations: 0.5383 MB / 0.5892 GB, free: 2.578 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.692e-05/0.1946, allocations: 31.95 kB / 0.5892 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2346/0.4292, allocations: 3.639 MB / 0.5927 GB, free: 33.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.4292, allocations: 1.781 kB / 0.5927 GB, free: 33.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003598/0.4328, allocations: 1.713 MB / 0.5944 GB, free: 33.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003963/0.4332, allocations: 223 kB / 0.5946 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.4333, allocations: 35.94 kB / 0.5947 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009751/0.4343, allocations: 123.9 kB / 0.5948 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005188/0.4348, allocations: 185.6 kB / 0.595 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.27e-05/0.4349, allocations: 34.23 kB / 0.595 GB, free: 32.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004587/0.4354, allocations: 329.4 kB / 0.5953 GB, free: 32.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4354, allocations: 0 / 0.5953 GB, free: 32.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001039/0.4364, allocations: 219.2 kB / 0.5955 GB, free: 32.83 MB / 446.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 (54): * Single equations (assignments): 50 * 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,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004973/0.4414, allocations: 2.561 MB / 0.598 GB, free: 31.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002744/0.4441, allocations: 0.9839 MB / 0.599 GB, free: 31.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4441, allocations: 0.75 kB / 0.599 GB, free: 31.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001536/0.4457, allocations: 0.6157 MB / 0.5996 GB, free: 31.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.447, allocations: 132.8 kB / 0.5997 GB, free: 31.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/0.4618, allocations: 7.362 MB / 0.6069 GB, free: 27.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.4622, allocations: 0.9288 MB / 0.6078 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003626/0.4626, allocations: 77.36 kB / 0.6079 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.4629, allocations: 241.6 kB / 0.6081 GB, free: 26.38 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4629, allocations: 0 / 0.6081 GB, free: 26.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05299/0.5159, allocations: 22.2 MB / 0.6298 GB, free: 14.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.58, allocations: 10.72 kB / 0.6298 GB, free: 14.55 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.163301530003082]