Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002883/0.002883, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.581/3.581, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001987/0.001987, allocations: 94.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006097/0.00061, allocations: 8 kB / 326.9 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1539, allocations: 47.59 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.007332/0.1613, allocations: 2.448 MB / 377 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00419/0.1655, allocations: 0.9674 MB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000524/0.1662, allocations: 4 kB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.1665, allocations: 43.62 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009314/0.1675, allocations: 151.6 kB / 378.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1687, allocations: 159.7 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001513/0.1703, allocations: 396.3 kB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004957/0.1708, allocations: 110.2 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009163/0.1718, allocations: 239.2 kB / 379 MB, free: 10.9 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008848/0.1727, allocations: 267 kB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002274/0.173, allocations: 24 kB / 379.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.1735, allocations: 67.84 kB / 379.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.1737, allocations: 95.69 kB / 379.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002602/0.174, allocations: 97.45 kB / 379.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.1752, allocations: 419.1 kB / 380 MB, free: 9.945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1753, allocations: 4 kB / 380 MB, free: 9.941 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.1753, allocations: 4 kB / 380 MB, free: 9.938 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.1753, allocations: 0 / 380 MB, free: 9.938 MB / 282.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.003653/0.179, allocations: 0.7251 MB / 380.7 MB, free: 9.164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.881e-05/0.1791, allocations: 8.031 kB / 380.7 MB, free: 9.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003102/0.1794, allocations: 51.34 kB / 380.8 MB, free: 9.105 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.1805, allocations: 322.2 kB / 381.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.875e-05/0.1806, allocations: 29 kB / 381.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.1809, allocations: 47.91 kB / 381.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.1835, allocations: 478.2 kB / 381.6 MB, free: 8.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.153e-05/0.1836, allocations: 4 kB / 381.6 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.1837, allocations: 16 kB / 381.6 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.1838, allocations: 8 kB / 381.7 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002985/0.1868, allocations: 495.7 kB / 382.1 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005976/0.1929, allocations: 1.141 MB / 383.3 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.1953, allocations: 400.8 kB / 383.7 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.1955, allocations: 4.438 kB / 383.7 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.1956, allocations: 39 kB / 383.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 5.961e-06/0.1956, allocations: 0 / 383.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.01569/0.2113, allocations: 2.429 MB / 386.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.2115, allocations: 55.97 kB / 386.2 MB, free: 3.418 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007768/0.2123, allocations: 283.3 kB / 386.5 MB, free: 3.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/0.2126, allocations: 45.69 kB / 386.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/0.2129, allocations: 239.7 kB / 386.8 MB, free: 2.848 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005132/0.2135, allocations: 185.4 kB / 386.9 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.914e-05/0.2136, allocations: 12 kB / 386.9 MB, free: 2.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002289/0.2139, allocations: 334.8 kB / 387.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.2155, allocations: 245.2 kB / 387.5 MB, free: 2.078 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.2173, allocations: 292.8 kB / 387.8 MB, free: 1.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.2188, allocations: 211.2 kB / 388 MB, free: 1.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.2188, allocations: 0 / 388 MB, free: 1.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004543/0.2234, allocations: 0.7407 MB / 388.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.2235, allocations: 4 kB / 388.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.2235, allocations: 0 / 388.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002662/0.2262, allocations: 0.4974 MB / 389.2 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.2275, allocations: 95.83 kB / 389.3 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3983/0.6258, allocations: 1.387 MB / 390.7 MB, free: 19.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.6274, allocations: 105.5 kB / 390.8 MB, free: 19.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.6276, allocations: 22.11 kB / 390.9 MB, free: 19.77 MB / 282.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 (58): * Single equations (assignments): 56 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000558/0.6282, allocations: 169.5 kB / 391 MB, free: 19.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.6284, allocations: 39.03 kB / 391.1 MB, free: 19.66 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.6288, allocations: 62.02 kB / 391.1 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/0.6288, allocations: 6.719 kB / 391.1 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/0.6288, allocations: 4.469 kB / 391.1 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-05/0.6289, allocations: 5.531 kB / 391.1 MB, free: 19.65 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007975/0.6369, allocations: 1.485 MB / 392.6 MB, free: 19.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/0.6369, allocations: 2.219 kB / 392.6 MB, free: 19.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.6381, allocations: 85.75 kB / 392.7 MB, free: 19.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002111/0.6402, allocations: 484.6 kB / 393.2 MB, free: 19.17 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.6405, allocations: 19.77 kB / 393.2 MB, free: 19.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002437/0.643, allocations: 1.375 MB / 394.6 MB, free: 18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/0.643, allocations: 1.938 kB / 394.6 MB, free: 18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005015/0.6481, allocations: 1.153 MB / 395.7 MB, free: 17.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006327/0.6488, allocations: 166.6 kB / 395.9 MB, free: 17.29 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.6491, allocations: 21.2 kB / 395.9 MB, free: 17.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.6503, allocations: 76.36 kB / 396 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006118/0.651, allocations: 115.5 kB / 396.1 MB, free: 17.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.6511, allocations: 23.08 kB / 396.1 MB, free: 17.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004605/0.6516, allocations: 200.8 kB / 396.3 MB, free: 17.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6516, allocations: 1.219 kB / 396.3 MB, free: 17.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001266/0.6529, allocations: 136.5 kB / 396.5 MB, free: 17.12 MB / 282.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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004752/0.6534, allocations: 141.5 kB / 396.6 MB, free: 17.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.6566, allocations: 0.5965 MB / 397.2 MB, free: 16.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.6567, allocations: 0 / 397.2 MB, free: 16.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.6586, allocations: 339 kB / 397.5 MB, free: 16.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.6598, allocations: 64.33 kB / 397.6 MB, free: 16.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008887/0.6688, allocations: 1.794 MB / 399.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.6695, allocations: 0.8315 MB / 400.2 MB, free: 15.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003366/0.6699, allocations: 42.17 kB / 400.2 MB, free: 15.03 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.6699, allocations: 3.938 kB / 400.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of Templates: time 0.02974/0.6996, allocations: 8.182 MB / 408.4 MB, free: 11.93 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches