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.001284/0.001284, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001289/0.001289, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.475/1.475, allocations: 230.2 MB / 254.5 MB, free: 15.37 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.2442/0.2442, allocations: 46.91 MB / 357.4 MB, free: 10.57 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 79.88 kB / 0.4912 GB, free: 8.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1261, allocations: 66 MB / 0.5557 GB, free: 6.406 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006928/0.1331, allocations: 4.125 MB / 0.5597 GB, free: 2.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003573/0.1366, allocations: 1.481 MB / 0.5612 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005991/0.1372, allocations: 15.94 kB / 0.5612 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005648/0.1378, allocations: 138.7 kB / 0.5613 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009398/0.1388, allocations: 281.9 kB / 0.5616 GB, free: 340 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009534/0.1397, allocations: 351.5 kB / 0.5619 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001624/0.1413, allocations: 1.096 MB / 0.563 GB, free: 14.89 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.1417, allocations: 142.5 kB / 0.5631 GB, free: 14.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009277/0.1426, allocations: 482.5 kB / 0.5636 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008661/0.1435, allocations: 0.5215 MB / 0.5641 GB, free: 13.74 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.1437, allocations: 80 kB / 0.5642 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003964/0.1441, allocations: 140 kB / 0.5643 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003099/0.1444, allocations: 227.3 kB / 0.5645 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005662/0.145, allocations: 433.8 kB / 0.5649 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0015/0.1465, allocations: 1.031 MB / 0.5659 GB, free: 11.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1465, allocations: 0 / 0.5659 GB, free: 11.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1465, allocations: 0 / 0.5659 GB, free: 11.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.901e-05/0.1466, allocations: 0 / 0.5659 GB, free: 11.84 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.002909/0.1495, allocations: 1.179 MB / 0.5671 GB, free: 10.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1495, allocations: 8.031 kB / 0.5671 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001919/0.1497, allocations: 106.7 kB / 0.5672 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005923/0.1503, allocations: 128.3 kB / 0.5673 GB, free: 10.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1513, allocations: 489.8 kB / 0.5678 GB, free: 9.844 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.613e-05/0.1514, allocations: 57.44 kB / 0.5678 GB, free: 9.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001605/0.1516, allocations: 63.95 kB / 0.5679 GB, free: 9.723 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.1533, allocations: 0.8184 MB / 0.5687 GB, free: 8.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/0.1533, allocations: 8 kB / 0.5687 GB, free: 8.863 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-05/0.1534, allocations: 28 kB / 0.5687 GB, free: 8.836 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.1534, allocations: 15.98 kB / 0.5687 GB, free: 8.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.1552, allocations: 0.7405 MB / 0.5695 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005009/0.1602, allocations: 2.575 MB / 0.572 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.1618, allocations: 0.6307 MB / 0.5726 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008214/0.1626, allocations: 351.3 kB / 0.5729 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.911e-05/0.1627, allocations: 12 kB / 0.5729 GB, free: 4.352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.1627, allocations: 42.75 kB / 0.573 GB, free: 4.301 MB / 430.1 MB Notification: Performance of pre-optimization done (n=79): time 2.876e-06/0.1627, allocations: 0 / 0.573 GB, free: 4.301 MB / 430.1 MB Notification: Performance of matching and sorting (n=83): time 0.008773/0.1715, allocations: 3.555 MB / 0.5765 GB, free: 500 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.785e-05/0.1716, allocations: 140.5 kB / 0.5766 GB, free: 328 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000674/0.1723, allocations: 477.9 kB / 0.577 GB, free: 15.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001814/0.1724, allocations: 57.69 kB / 0.5771 GB, free: 15.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.1727, allocations: 285.1 kB / 0.5774 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003206/0.173, allocations: 309.5 kB / 0.5777 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.1733, allocations: 170.5 kB / 0.5778 GB, free: 15.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.1735, allocations: 370.8 kB / 0.5782 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008215/0.1743, allocations: 365.8 kB / 0.5785 GB, free: 14.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009538/0.1753, allocations: 0.5254 MB / 0.579 GB, free: 13.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.1767, allocations: 0.6902 MB / 0.5797 GB, free: 12.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.1767, allocations: 4 kB / 0.5797 GB, free: 12.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002842/0.1795, allocations: 1.188 MB / 0.5809 GB, free: 11.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.1795, allocations: 10.19 kB / 0.5809 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.1795, allocations: 4 kB / 0.5809 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.1809, allocations: 0.5811 MB / 0.5815 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.1814, allocations: 139.8 kB / 0.5816 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.1856, allocations: 3.858 MB / 0.5854 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009454/0.1866, allocations: 147.9 kB / 0.5855 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.551e-05/0.1867, allocations: 31.98 kB / 0.5855 GB, free: 6.75 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.0003807/0.187, allocations: 224.3 kB / 0.5858 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.1873, allocations: 71.53 kB / 0.5858 GB, free: 6.449 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.1875, allocations: 96.83 kB / 0.5859 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.1875, allocations: 11.94 kB / 0.5859 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1875, allocations: 0 / 0.5859 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.1875, allocations: 7.984 kB / 0.5859 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004138/0.1916, allocations: 2.146 MB / 0.588 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.1916, allocations: 3.984 kB / 0.588 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005739/0.1922, allocations: 111.9 kB / 0.5881 GB, free: 4.008 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.1934, allocations: 0.5264 MB / 0.5887 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.511e-05/0.1935, allocations: 39.89 kB / 0.5887 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2345/0.428, allocations: 3.646 MB / 0.5922 GB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.428, allocations: 5.688 kB / 0.5923 GB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003685/0.4317, allocations: 1.715 MB / 0.5939 GB, free: 34.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004301/0.4321, allocations: 227.8 kB / 0.5941 GB, free: 34.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4323, allocations: 31.61 kB / 0.5942 GB, free: 34.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008665/0.4331, allocations: 126.2 kB / 0.5943 GB, free: 34.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004417/0.4336, allocations: 189.2 kB / 0.5945 GB, free: 34.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.211e-05/0.4336, allocations: 35.22 kB / 0.5945 GB, free: 34.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.434, allocations: 331.2 kB / 0.5948 GB, free: 33.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.434, allocations: 0 / 0.5948 GB, free: 33.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009297/0.435, allocations: 210.9 kB / 0.595 GB, free: 33.92 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.004738/0.4397, allocations: 2.55 MB / 0.5975 GB, free: 32.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.4421, allocations: 0.987 MB / 0.5985 GB, free: 32.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4421, allocations: 4.875 kB / 0.5985 GB, free: 32.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4435, allocations: 0.6014 MB / 0.5991 GB, free: 32.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.4447, allocations: 149 kB / 0.5992 GB, free: 32.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/0.4583, allocations: 7.367 MB / 0.6064 GB, free: 28.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.4588, allocations: 0.928 MB / 0.6073 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004107/0.4592, allocations: 84.59 kB / 0.6074 GB, free: 27.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.4595, allocations: 240.1 kB / 0.6076 GB, free: 27.44 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4595, allocations: 0 / 0.6076 GB, free: 27.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06128/0.5208, allocations: 22.16 MB / 0.6293 GB, free: 15.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.78, allocations: 11.94 kB / 0.6293 GB, free: 15.64 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.194662775844336]