Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008151/0.0008151, allocations: 96.38 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.000228, allocations: 11.98 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2118, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002591/0.2144, allocations: 2.71 MB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2158, allocations: 1.026 MB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.2159, allocations: 8 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.2162, allocations: 66.95 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.2165, allocations: 158.9 kB / 412 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.2167, allocations: 141.9 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004255/0.2172, allocations: 0.5807 MB / 412.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.2174, allocations: 115.9 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.2177, allocations: 259.1 kB / 413.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.218, allocations: 275 kB / 413.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.984e-05/0.2181, allocations: 24 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.2183, allocations: 79.98 kB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.2184, allocations: 111.6 kB / 413.6 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.2186, allocations: 248.5 kB / 413.8 MB, free: 21.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.219, allocations: 459.8 kB / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.219, allocations: 0 / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.219, allocations: 0 / 414.3 MB, free: 21.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.219, allocations: 0 / 414.3 MB, free: 21.45 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001198/0.2202, allocations: 0.7564 MB / 415 MB, free: 20.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2203, allocations: 16.03 kB / 415 MB, free: 20.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.2205, allocations: 64.27 kB / 415.1 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.2209, allocations: 339.2 kB / 415.4 MB, free: 20.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.2209, allocations: 29.38 kB / 415.5 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.221, allocations: 48.28 kB / 415.5 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.2217, allocations: 462.6 kB / 416 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.2217, allocations: 8 kB / 416 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.291e-05/0.2218, allocations: 16 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2218, allocations: 11.98 kB / 416 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007971/0.2226, allocations: 467.6 kB / 416.5 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.2243, allocations: 1.164 MB / 417.6 MB, free: 17.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000729/0.2251, allocations: 432.2 kB / 418 MB, free: 17.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005017/0.2256, allocations: 270.2 kB / 418.3 MB, free: 17.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.974e-05/0.2256, allocations: 4.562 kB / 418.3 MB, free: 17.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.678e-05/0.2257, allocations: 47.06 kB / 418.4 MB, free: 17.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 2.164e-06/0.2257, allocations: 0 / 418.4 MB, free: 17.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.004215/0.2299, allocations: 2.375 MB / 420.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.2299, allocations: 59.97 kB / 420.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.2302, allocations: 308.5 kB / 421.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.2303, allocations: 41.7 kB / 421.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.2303, allocations: 181.4 kB / 421.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.2305, allocations: 217.1 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.2305, allocations: 8 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.2306, allocations: 346.8 kB / 421.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.231, allocations: 229.2 kB / 422.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004167/0.2314, allocations: 276.8 kB / 422.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006425/0.232, allocations: 402.2 kB / 422.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2321, allocations: 0 / 422.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001245/0.2333, allocations: 0.7209 MB / 423.5 MB, free: 11.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2333, allocations: 4 kB / 423.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2334, allocations: 0 / 423.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000727/0.2341, allocations: 333.5 kB / 423.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.2344, allocations: 87.89 kB / 423.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009599/0.2354, allocations: 1.39 MB / 425.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.2358, allocations: 100 kB / 425.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/0.2359, allocations: 20 kB / 425.4 MB, free: 9.918 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001926/0.2361, allocations: 177.6 kB / 425.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.166e-05/0.2362, allocations: 47.44 kB / 425.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.2363, allocations: 63.8 kB / 425.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2363, allocations: 4 kB / 425.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.2363, allocations: 4 kB / 425.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2363, allocations: 0 / 425.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.2385, allocations: 1.462 MB / 427.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2385, allocations: 4 kB / 427.2 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.2389, allocations: 83.89 kB / 427.2 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005762/0.2395, allocations: 307.5 kB / 427.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.2395, allocations: 27.91 kB / 427.6 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008687/0.2404, allocations: 1.347 MB / 428.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2404, allocations: 4.031 kB / 428.9 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.242, allocations: 1.054 MB / 430 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.2422, allocations: 172.6 kB / 430.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.978e-05/0.2423, allocations: 27.88 kB / 430.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003861/0.2427, allocations: 79.92 kB / 430.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.2429, allocations: 116.3 kB / 430.4 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.2429, allocations: 19.98 kB / 430.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001879/0.2431, allocations: 215.1 kB / 430.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2431, allocations: 96 / 430.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004483/0.2436, allocations: 135.9 kB / 430.7 MB, free: 4.387 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007377/0.2443, allocations: 389 kB / 431.1 MB, free: 4.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.2454, allocations: 0.5703 MB / 431.7 MB, free: 3.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2454, allocations: 0 / 431.7 MB, free: 3.551 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000586/0.246, allocations: 343 kB / 432 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.2466, allocations: 79.58 kB / 432.1 MB, free: 3.141 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.2498, allocations: 1.837 MB / 433.9 MB, free: 1.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.25, allocations: 0.8325 MB / 434.7 MB, free: 408 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2501, allocations: 39.36 kB / 434.8 MB, free: 368 kB / 298.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2501, allocations: 4 kB / 434.8 MB, free: 364 kB / 298.7 MB Notification: Performance of Templates: time 0.01097/0.2611, allocations: 8.932 MB / 443.7 MB, free: 7.426 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches