Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009476/0.0009476, allocations: 178.4 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 225.7 MB / 243.2 MB, free: 10.22 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007996/0.0007997, allocations: 97.91 kB / 294.4 MB, free: 9.758 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002245, allocations: 11.94 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1836, allocations: 50.41 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001752/0.1854, allocations: 1.978 MB / 406.5 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000602/0.186, allocations: 0.5419 MB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.73e-05/0.1861, allocations: 4.844 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.683e-05/0.1862, allocations: 27.78 kB / 407.1 MB, free: 28.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.1863, allocations: 65.02 kB / 407.2 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001428/0.1865, allocations: 54.55 kB / 407.2 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.1867, allocations: 254.8 kB / 407.5 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1868, allocations: 87.3 kB / 407.6 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.1869, allocations: 94.97 kB / 407.7 MB, free: 28.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.762e-05/0.187, allocations: 99.47 kB / 407.8 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.187, allocations: 12 kB / 407.8 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.822e-05/0.1871, allocations: 12 kB / 407.8 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.768e-05/0.1871, allocations: 39.84 kB / 407.8 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.716e-05/0.1872, allocations: 145 kB / 408 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.1874, allocations: 244.6 kB / 408.2 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1874, allocations: 4 kB / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1874, allocations: 0 / 408.2 MB, free: 27.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.1874, allocations: 4 kB / 408.2 MB, free: 27.71 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.0005082/0.1879, allocations: 491 kB / 408.7 MB, free: 27.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.1879, allocations: 8.031 kB / 408.7 MB, free: 27.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.188, allocations: 28.66 kB / 408.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.1882, allocations: 238.9 kB / 409 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.1882, allocations: 20.81 kB / 409 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.1882, allocations: 28.38 kB / 409 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.1885, allocations: 195.6 kB / 409.2 MB, free: 26.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.1885, allocations: 3.906 kB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.1886, allocations: 8 kB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1886, allocations: 7.938 kB / 409.2 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002204/0.1888, allocations: 145.7 kB / 409.4 MB, free: 26.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006779/0.1895, allocations: 0.6385 MB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.1897, allocations: 183.9 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.1899, allocations: 96.83 kB / 410.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1899, allocations: 0 / 410.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.1899, allocations: 38.56 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 9.41e-07/0.1899, allocations: 4 kB / 410.3 MB, free: 25.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001386/0.1913, allocations: 1.083 MB / 411.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.968e-05/0.1913, allocations: 59.34 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1914, allocations: 176.3 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1915, allocations: 29.7 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.305e-05/0.1915, allocations: 140.7 kB / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.1916, allocations: 110.3 kB / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-06/0.1916, allocations: 8 kB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.339e-05/0.1916, allocations: 338.8 kB / 412.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.1917, allocations: 67.97 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1919, allocations: 107.4 kB / 412.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.1921, allocations: 201.3 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.1921, allocations: 0 / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003746/0.1925, allocations: 290.3 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.1925, allocations: 4.062 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1926, allocations: 7.984 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.1927, allocations: 40.84 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.1929, allocations: 59.91 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009346/0.1939, allocations: 1.573 MB / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.194, allocations: 16.02 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.194, allocations: 11.94 kB / 414.6 MB, free: 20.87 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.141e-05/0.1941, allocations: 141.8 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/0.1941, allocations: 23.72 kB / 414.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.443e-05/0.1942, allocations: 38.58 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1942, allocations: 4 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1942, allocations: 0 / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1942, allocations: 0 / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000805/0.195, allocations: 0.781 MB / 415.6 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.195, allocations: 0 / 415.6 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.1953, allocations: 71.94 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.282e-05/0.1954, allocations: 32.83 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.1954, allocations: 8 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006852/0.1961, allocations: 1.382 MB / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1961, allocations: 0 / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.1966, allocations: 491.2 kB / 417.6 MB, free: 17.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.1967, allocations: 96.83 kB / 417.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.1967, allocations: 16.09 kB / 417.7 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.1968, allocations: 12 kB / 417.7 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.1969, allocations: 27.84 kB / 417.7 MB, free: 17.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.1969, allocations: 12 kB / 417.7 MB, free: 17.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.97e-05/0.197, allocations: 135.5 kB / 417.9 MB, free: 17.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.197, allocations: 0 / 417.9 MB, free: 17.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003037/0.1973, allocations: 64 kB / 417.9 MB, free: 17.29 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.1974, allocations: 108.9 kB / 418 MB, free: 17.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004737/0.1979, allocations: 340.9 kB / 418.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1979, allocations: 0 / 418.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.1982, allocations: 250.4 kB / 418.6 MB, free: 16.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.1986, allocations: 48.22 kB / 418.6 MB, free: 16.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.1996, allocations: 0.898 MB / 419.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.1998, allocations: 0.7564 MB / 420.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.623e-05/0.1999, allocations: 22.28 kB / 420.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.545e-05/0.1999, allocations: 27.38 kB / 420.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1999, allocations: 0 / 420.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of Templates: time 0.00436/0.2043, allocations: 2.497 MB / 422.8 MB, free: 12.27 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches