Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.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.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008922/0.0008922, allocations: 196.5 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.6 MB / 244.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007579/0.0007582, allocations: 89.77 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001887/0.0001887, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001679/0.1916, allocations: 1.979 MB / 409.5 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006401/0.1922, allocations: 0.5944 MB / 410.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.1923, allocations: 5.031 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.576e-05/0.1924, allocations: 23.78 kB / 410.1 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.92e-05/0.1925, allocations: 65.41 kB / 410.2 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.1927, allocations: 43.94 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1929, allocations: 250.7 kB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.193, allocations: 80.77 kB / 410.5 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.1932, allocations: 91.66 kB / 410.6 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1933, allocations: 99.53 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.1933, allocations: 12 kB / 410.7 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.33e-05/0.1934, allocations: 16 kB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.084e-05/0.1934, allocations: 35.84 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.1934, allocations: 72.11 kB / 410.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.1936, allocations: 188.5 kB / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1936, allocations: 0 / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1936, allocations: 0 / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1936, allocations: 0 / 411 MB, free: 24.27 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0004784/0.1941, allocations: 497.8 kB / 411.5 MB, free: 23.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.1941, allocations: 8.031 kB / 411.5 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.1943, allocations: 39.7 kB / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.1945, allocations: 239.4 kB / 411.8 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.1945, allocations: 16.44 kB / 411.8 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.1945, allocations: 27.95 kB / 411.8 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.1948, allocations: 191.2 kB / 412 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1948, allocations: 7.906 kB / 412 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.1949, allocations: 8 kB / 412 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.1949, allocations: 4 kB / 412 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002159/0.1951, allocations: 149.6 kB / 412.2 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006913/0.1958, allocations: 0.6308 MB / 412.8 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.196, allocations: 185 kB / 413 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1962, allocations: 100.8 kB / 413.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.1962, allocations: 4 kB / 413.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.533e-05/0.1962, allocations: 34.56 kB / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.1962, allocations: 0 / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001429/0.1977, allocations: 1.091 MB / 414.2 MB, free: 20.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.91e-05/0.1977, allocations: 59.39 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1978, allocations: 176.8 kB / 414.5 MB, free: 20.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.1978, allocations: 33.69 kB / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.503e-05/0.1979, allocations: 144.7 kB / 414.6 MB, free: 20.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.1979, allocations: 114.3 kB / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-06/0.1979, allocations: 4 kB / 414.7 MB, free: 20.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.415e-05/0.198, allocations: 334.8 kB / 415.1 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.1981, allocations: 75.72 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1982, allocations: 102.8 kB / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.1984, allocations: 89.34 kB / 415.3 MB, free: 19.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1984, allocations: 0 / 415.3 MB, free: 19.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003878/0.1988, allocations: 290.9 kB / 415.6 MB, free: 19.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.1988, allocations: 4 kB / 415.6 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.1988, allocations: 8.016 kB / 415.6 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.199, allocations: 44.83 kB / 415.7 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.1992, allocations: 63.89 kB / 415.7 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008689/0.2001, allocations: 1.557 MB / 417.3 MB, free: 17.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.2002, allocations: 16.03 kB / 417.3 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.2002, allocations: 4 kB / 417.3 MB, free: 17.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.861e-05/0.2003, allocations: 153.9 kB / 417.5 MB, free: 17.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.2003, allocations: 31.7 kB / 417.5 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.2004, allocations: 26.66 kB / 417.5 MB, free: 17.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2004, allocations: 4 kB / 417.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2004, allocations: 0 / 417.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2004, allocations: 3.984 kB / 417.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007886/0.2012, allocations: 0.7706 MB / 418.3 MB, free: 16.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2012, allocations: 7.953 kB / 418.3 MB, free: 16.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.2015, allocations: 64 kB / 418.4 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.512e-05/0.2016, allocations: 28.84 kB / 418.4 MB, free: 16.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.2016, allocations: 11.98 kB / 418.4 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000662/0.2022, allocations: 1.378 MB / 419.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2023, allocations: 0 / 419.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005109/0.2028, allocations: 491 kB / 420.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.2028, allocations: 92.83 kB / 420.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.2029, allocations: 12 kB / 420.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.203, allocations: 8 kB / 420.4 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.203, allocations: 27.95 kB / 420.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.2031, allocations: 15.98 kB / 420.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.343e-05/0.2031, allocations: 140.5 kB / 420.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2031, allocations: 0 / 420.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.2034, allocations: 64 kB / 420.6 MB, free: 13.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.357e-05/0.2035, allocations: 107.1 kB / 420.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004634/0.204, allocations: 342.5 kB / 421.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.204, allocations: 0 / 421.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.2043, allocations: 247.2 kB / 421.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.2046, allocations: 47.84 kB / 421.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009152/0.2056, allocations: 0.9158 MB / 422.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.2057, allocations: 0.7564 MB / 423 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.347e-05/0.2058, allocations: 19.44 kB / 423 MB, free: 11.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2058, allocations: 0 / 423 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Templates: time 0.003849/0.2096, allocations: 3.802 MB / 426.8 MB, free: 7.637 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches