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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009139/0.0009139, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009953/0.0009953, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8719/0.8719, allocations: 158.6 MB / 185 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1377/0.1377, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.278e-05, allocations: 6.078 kB / 406.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.003869/0.003892, allocations: 3.568 MB / 410.4 MB, free: 14.67 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.005998, allocations: 1.259 MB / 411.6 MB, free: 13.41 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003707/0.006369, allocations: 19.88 kB / 411.7 MB, free: 13.39 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.006669, allocations: 122.8 kB / 411.8 MB, free: 13.27 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004226/0.007091, allocations: 218 kB / 412 MB, free: 13.05 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.007844, allocations: 355.3 kB / 412.3 MB, free: 12.7 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.009125, allocations: 1.061 MB / 413.4 MB, free: 11.64 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.009369, allocations: 114.9 kB / 413.5 MB, free: 11.53 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007717/0.01014, allocations: 0.6121 MB / 414.1 MB, free: 10.91 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004379/0.01058, allocations: 399 kB / 414.5 MB, free: 10.52 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.75e-05/0.01068, allocations: 80 kB / 414.6 MB, free: 10.45 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.01088, allocations: 131.9 kB / 414.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.01102, allocations: 207.3 kB / 414.9 MB, free: 10.11 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.01122, allocations: 283.3 kB / 415.2 MB, free: 9.836 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008793/0.0121, allocations: 1.016 MB / 416.2 MB, free: 8.816 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.0121, allocations: 0 / 416.2 MB, free: 8.816 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.01211, allocations: 0 / 416.2 MB, free: 8.816 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.795e-05/0.01213, allocations: 0 / 416.2 MB, free: 8.816 MB / 394.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.001513/0.01365, allocations: 1.023 MB / 417.2 MB, free: 7.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.01369, allocations: 12.03 kB / 417.3 MB, free: 7.746 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.155e-05/0.01378, allocations: 102.6 kB / 417.4 MB, free: 7.637 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.0139, allocations: 80.42 kB / 417.4 MB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.01445, allocations: 383.4 kB / 417.8 MB, free: 7.156 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.01449, allocations: 53.62 kB / 417.9 MB, free: 7.105 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.805e-05/0.01458, allocations: 68.33 kB / 417.9 MB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009943/0.01557, allocations: 0.8297 MB / 418.8 MB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.0156, allocations: 11.94 kB / 418.8 MB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.01565, allocations: 24 kB / 418.8 MB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.01566, allocations: 16 kB / 418.8 MB, free: 6.125 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009727/0.01663, allocations: 0.7542 MB / 419.6 MB, free: 5.371 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002755/0.01939, allocations: 2.307 MB / 421.9 MB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.02022, allocations: 0.5995 MB / 422.5 MB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/0.02063, allocations: 355.3 kB / 422.8 MB, free: 1.957 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.189e-05/0.02067, allocations: 8 kB / 422.8 MB, free: 1.949 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.0207, allocations: 38.56 kB / 422.9 MB, free: 1.902 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 2.064e-06/0.0207, allocations: 0 / 422.9 MB, free: 1.902 MB / 394.7 MB Notification: Performance of matching and sorting (n=76): time 0.004129/0.02483, allocations: 2.972 MB / 425.8 MB, free: 14.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.02489, allocations: 144.4 kB / 426 MB, free: 14.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.02522, allocations: 429.8 kB / 426.4 MB, free: 14.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.02527, allocations: 53.69 kB / 426.4 MB, free: 14.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.0254, allocations: 284.9 kB / 426.7 MB, free: 13.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005776/0.02598, allocations: 269.9 kB / 427 MB, free: 13.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.02617, allocations: 178.5 kB / 427.2 MB, free: 13.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.02627, allocations: 366.8 kB / 427.5 MB, free: 13.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000491/0.02676, allocations: 393.8 kB / 427.9 MB, free: 12.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.0273, allocations: 0.5374 MB / 428.4 MB, free: 12.08 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008241/0.02812, allocations: 0.7397 MB / 429.2 MB, free: 11.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.02813, allocations: 7.938 kB / 429.2 MB, free: 11.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.001609/0.02974, allocations: 1.267 MB / 430.5 MB, free: 9.992 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.02976, allocations: 8 kB / 430.5 MB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.02977, allocations: 4 kB / 430.5 MB, free: 9.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008335/0.0306, allocations: 0.7648 MB / 431.2 MB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.03088, allocations: 151.7 kB / 431.4 MB, free: 9.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.03263, allocations: 2.69 MB / 434.1 MB, free: 6.262 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.03309, allocations: 147.8 kB / 434.2 MB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.461e-05/0.03313, allocations: 35.98 kB / 434.3 MB, free: 6.082 MB / 410.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 (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.0002153/0.03335, allocations: 220.1 kB / 434.5 MB, free: 5.859 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.791e-05/0.03345, allocations: 67.56 kB / 434.5 MB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.953e-05/0.03354, allocations: 87.95 kB / 434.6 MB, free: 5.699 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.03354, allocations: 11.98 kB / 434.6 MB, free: 5.688 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.03355, allocations: 4 kB / 434.6 MB, free: 5.684 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.03356, allocations: 3.984 kB / 434.6 MB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.03592, allocations: 2.025 MB / 436.7 MB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.03593, allocations: 0 / 436.7 MB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.0362, allocations: 111.8 kB / 436.8 MB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007165/0.03691, allocations: 0.7254 MB / 437.5 MB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.03697, allocations: 31.95 kB / 437.5 MB, free: 2.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.0383, allocations: 2.643 MB / 440.2 MB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.0383, allocations: 4.062 kB / 440.2 MB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.04041, allocations: 1.78 MB / 442 MB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.04062, allocations: 135.4 kB / 442.1 MB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/0.0407, allocations: 28 kB / 442.1 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/0.0411, allocations: 127.8 kB / 442.2 MB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.04131, allocations: 147.7 kB / 442.4 MB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.04135, allocations: 31.97 kB / 442.4 MB, free: 13.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002043/0.04155, allocations: 291.1 kB / 442.7 MB, free: 13.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.04155, allocations: 0 / 442.7 MB, free: 13.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005375/0.04209, allocations: 200 kB / 442.9 MB, free: 13.21 MB / 426.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 (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.00223/0.04432, allocations: 2.36 MB / 445.3 MB, free: 10.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.04557, allocations: 0.8902 MB / 446.1 MB, free: 9.922 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.04557, allocations: 4.812 kB / 446.2 MB, free: 9.918 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006346/0.04621, allocations: 499.6 kB / 446.6 MB, free: 9.434 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.0468, allocations: 107 kB / 446.7 MB, free: 9.332 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008032/0.05483, allocations: 7.199 MB / 453.9 MB, free: 1.887 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.05505, allocations: 305.8 kB / 454.2 MB, free: 1.559 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.05524, allocations: 64.81 kB / 454.3 MB, free: 1.496 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/0.05545, allocations: 212.4 kB / 454.5 MB, free: 1.289 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.05546, allocations: 0 / 454.5 MB, free: 1.289 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1794/0.2349, allocations: 19.81 MB / 474.3 MB, free: 101.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/8.061, allocations: 4 kB / 474.3 MB, free: 101.4 MB / 442.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 10.229363328777254]