Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008119/0.0008119, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008515/0.0008515, allocations: 149.1 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.866/0.866, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.949e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002911/0.002941, allocations: 2.832 MB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.004238, allocations: 0.9037 MB / 322.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.004402, allocations: 7.938 kB / 322.2 MB, free: 2.594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.004611, allocations: 63.38 kB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.004812, allocations: 154.6 kB / 322.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.005357, allocations: 227.5 kB / 322.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004746/0.005831, allocations: 0.6508 MB / 323.3 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.005999, allocations: 96.61 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/0.006385, allocations: 387.2 kB / 323.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.006628, allocations: 251.4 kB / 324 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.717e-05/0.006685, allocations: 48 kB / 324 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.006824, allocations: 95.95 kB / 324.1 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.95e-05/0.006923, allocations: 127.5 kB / 324.2 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.00705, allocations: 175.6 kB / 324.4 MB, free: 348 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005415/0.007591, allocations: 0.6427 MB / 325 MB, free: 15.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007594, allocations: 0 / 325 MB, free: 15.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.007595, allocations: 0 / 325 MB, free: 15.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.007603, allocations: 0 / 325 MB, free: 15.69 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009331/0.008536, allocations: 0.7187 MB / 325.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.008574, allocations: 8.922 kB / 325.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.008681, allocations: 91.66 kB / 325.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.087e-05/0.008752, allocations: 52.61 kB / 325.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.009087, allocations: 276.4 kB / 326.2 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.009111, allocations: 29.38 kB / 326.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.00917, allocations: 48.33 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005443/0.009714, allocations: 478.9 kB / 326.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.009732, allocations: 8.172 kB / 326.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.009763, allocations: 16.12 kB / 326.8 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.009771, allocations: 16 kB / 326.8 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.01035, allocations: 479.7 kB / 327.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.01163, allocations: 0.9897 MB / 328.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/0.01216, allocations: 364.5 kB / 328.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.01246, allocations: 250.2 kB / 328.8 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.01249, allocations: 4.5 kB / 328.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.01251, allocations: 39.06 kB / 328.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.373e-06/0.01251, allocations: 3.938 kB / 328.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.0029/0.01541, allocations: 2.045 MB / 330.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.864e-05/0.01544, allocations: 55.91 kB / 331 MB, free: 9.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.01564, allocations: 292.6 kB / 331.3 MB, free: 9.266 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.01567, allocations: 37.7 kB / 331.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.01576, allocations: 193.5 kB / 331.5 MB, free: 9.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.01588, allocations: 206.3 kB / 331.7 MB, free: 8.828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.01599, allocations: 110.3 kB / 331.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.01612, allocations: 346.8 kB / 332.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.01642, allocations: 241.2 kB / 332.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.01671, allocations: 292.7 kB / 332.7 MB, free: 7.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.01724, allocations: 414 kB / 333.1 MB, free: 7.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01724, allocations: 4 kB / 333.1 MB, free: 7.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009821/0.01822, allocations: 0.7874 MB / 333.8 MB, free: 6.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.01825, allocations: 4.031 kB / 333.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.01825, allocations: 4 kB / 333.9 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.0188, allocations: 0.4935 MB / 334.4 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.01898, allocations: 87.89 kB / 334.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009423/0.01992, allocations: 1.405 MB / 335.8 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.02016, allocations: 76.06 kB / 335.9 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.02019, allocations: 19.94 kB / 335.9 MB, free: 4.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001535/0.02034, allocations: 177.7 kB / 336.1 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.02039, allocations: 47.66 kB / 336.2 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.337e-05/0.02045, allocations: 55.73 kB / 336.2 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.02046, allocations: 4 kB / 336.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.02046, allocations: 8 kB / 336.2 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.02047, allocations: 3.984 kB / 336.2 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.02204, allocations: 1.347 MB / 337.6 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.02205, allocations: 7.938 kB / 337.6 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.02223, allocations: 87.83 kB / 337.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004481/0.02268, allocations: 477.6 kB / 338.1 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.02271, allocations: 19.98 kB / 338.2 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009655/0.02368, allocations: 1.382 MB / 339.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.02368, allocations: 4.031 kB / 339.5 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.02487, allocations: 1.08 MB / 340.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.025, allocations: 87.73 kB / 340.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.283e-05/0.02505, allocations: 24.03 kB / 340.7 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.02524, allocations: 63.86 kB / 340.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.02538, allocations: 96.31 kB / 340.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.0254, allocations: 23.98 kB / 340.9 MB, free: 15.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001221/0.02553, allocations: 211.1 kB / 341.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02553, allocations: 0 / 341.1 MB, free: 15.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.02582, allocations: 132 kB / 341.2 MB, free: 14.99 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/0.02735, allocations: 1.667 MB / 342.9 MB, free: 13.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.02809, allocations: 0.5615 MB / 343.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.02809, allocations: 3.938 kB / 343.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.02848, allocations: 326.5 kB / 343.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.02884, allocations: 75.77 kB / 343.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.03415, allocations: 4.9 MB / 348.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.03428, allocations: 216.9 kB / 349 MB, free: 7.062 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.03439, allocations: 39.27 kB / 349 MB, free: 7.023 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.03452, allocations: 140.4 kB / 349.2 MB, free: 6.887 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.03453, allocations: 4 kB / 349.2 MB, free: 6.883 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.06116, allocations: 13.31 MB / 362.5 MB, free: 9.773 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.852, allocations: 8 kB / 362.5 MB, free: 9.766 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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: 9.550600907765329]