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.001333/0.001333, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 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.001336/0.001336, allocations: 188.3 kB / 23.72 MB, free: 4.559 MB / 14.72 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 1.36/1.36, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001555/0.001555, allocations: 51.92 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2263, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004926/0.2312, allocations: 3.069 MB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2333, allocations: 0.9388 MB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003558/0.2336, allocations: 7.938 kB / 426.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.234, allocations: 67.31 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004426/0.2344, allocations: 138.8 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007261/0.2352, allocations: 223.6 kB / 427.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008776/0.236, allocations: 0.6394 MB / 427.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.2363, allocations: 88.72 kB / 427.8 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006795/0.237, allocations: 279.1 kB / 428.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006198/0.2376, allocations: 314.8 kB / 428.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.2377, allocations: 48 kB / 428.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.2379, allocations: 103.9 kB / 428.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.2381, allocations: 119.6 kB / 428.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.2383, allocations: 258.8 kB / 428.9 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007628/0.2391, allocations: 0.5918 MB / 429.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2391, allocations: 0 / 429.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2391, allocations: 0 / 429.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2391, allocations: 3.938 kB / 429.5 MB, free: 7.715 MB / 334.1 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.00147/0.2406, allocations: 0.7271 MB / 430.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2406, allocations: 8.031 kB / 430.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.2408, allocations: 87.66 kB / 430.3 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.2409, allocations: 48.66 kB / 430.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.2414, allocations: 281.1 kB / 430.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.2414, allocations: 33.38 kB / 430.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.904e-05/0.2415, allocations: 44.38 kB / 430.7 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008883/0.2424, allocations: 486.4 kB / 431.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.2424, allocations: 7.953 kB / 431.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.375e-05/0.2425, allocations: 16 kB / 431.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.2425, allocations: 8 kB / 431.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.2434, allocations: 487.7 kB / 431.7 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.2455, allocations: 1.099 MB / 432.8 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000808/0.2464, allocations: 366.6 kB / 433.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005115/0.2469, allocations: 250 kB / 433.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.154e-05/0.2469, allocations: 4.438 kB / 433.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.247, allocations: 39 kB / 433.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.224e-06/0.247, allocations: 0 / 433.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.00497/0.2519, allocations: 2.04 MB / 435.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.252, allocations: 59.91 kB / 435.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.2523, allocations: 296.5 kB / 435.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.2524, allocations: 37.7 kB / 435.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.2526, allocations: 189.6 kB / 436 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.2528, allocations: 206.3 kB / 436.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.253, allocations: 106.3 kB / 436.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2531, allocations: 346.8 kB / 436.7 MB, free: 280 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.2536, allocations: 245.2 kB / 436.9 MB, free: 32 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005564/0.2542, allocations: 288.9 kB / 437.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000792/0.255, allocations: 414 kB / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.255, allocations: 0 / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001704/0.2567, allocations: 0.7797 MB / 438.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.2567, allocations: 8 kB / 438.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2567, allocations: 0 / 438.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000971/0.2577, allocations: 0.5012 MB / 438.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003773/0.2581, allocations: 91.83 kB / 439 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.2596, allocations: 1.398 MB / 440.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.2601, allocations: 80.05 kB / 440.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.2601, allocations: 19.94 kB / 440.5 MB, free: 12.39 MB / 350.1 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.0002989/0.2604, allocations: 182.6 kB / 440.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.2606, allocations: 43.72 kB / 440.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.2607, allocations: 55.73 kB / 440.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2607, allocations: 4 kB / 440.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2607, allocations: 0 / 440.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.2607, allocations: 0 / 440.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003121/0.2639, allocations: 1.42 MB / 442.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.2639, allocations: 0 / 442.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.2642, allocations: 83.89 kB / 442.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008558/0.2651, allocations: 485.4 kB / 442.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.755e-05/0.2651, allocations: 19.97 kB / 442.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.2666, allocations: 1.378 MB / 444.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2666, allocations: 4.031 kB / 444.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.2688, allocations: 1.087 MB / 445.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.2691, allocations: 87.69 kB / 445.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.2692, allocations: 23.98 kB / 445.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.2696, allocations: 55.94 kB / 445.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.2698, allocations: 96.38 kB / 445.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/0.2699, allocations: 31.97 kB / 445.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.2701, allocations: 199.1 kB / 445.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2701, allocations: 0 / 445.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.2706, allocations: 132 kB / 445.8 MB, free: 6.859 MB / 350.1 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.002701/0.2733, allocations: 1.674 MB / 447.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.2747, allocations: 0.5612 MB / 448.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2747, allocations: 0 / 448.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007384/0.2754, allocations: 326.4 kB / 448.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/0.2761, allocations: 77.14 kB / 448.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009299/0.2854, allocations: 5.007 MB / 453.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.2858, allocations: 0.8202 MB / 454.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.286, allocations: 47.25 kB / 454.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.2862, allocations: 131.4 kB / 454.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2862, allocations: 0 / 454.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04941/0.3356, allocations: 14.49 MB / 469 MB, free: 15.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.35, allocations: 7.312 kB / 469 MB, free: 15.7 MB / 382.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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: 15.777733373921365]