Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.006532/0.006532, allocations: 160.7 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8889/0.8889, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2873/0.2873, allocations: 34.26 MB / 295.7 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.165e-06/2.165e-06, allocations: 0 / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.109e-05/3.325e-05, allocations: 9.453 kB / 443.4 MB, free: 1.16 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.182/0.182, allocations: 1.876 MB / 445.3 MB, free: 43.62 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006792/0.1827, allocations: 0.5219 MB / 445.8 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.081e-05/0.1828, allocations: 6.75 kB / 445.8 MB, free: 43.39 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.1829, allocations: 21.89 kB / 445.9 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.575e-05/0.183, allocations: 41.38 kB / 445.9 MB, free: 43.36 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.1832, allocations: 45.88 kB / 445.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.1833, allocations: 164.2 kB / 446.1 MB, free: 43.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.1834, allocations: 38.31 kB / 446.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.1836, allocations: 97.7 kB / 446.2 MB, free: 43.28 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.253e-05/0.1837, allocations: 53.38 kB / 446.3 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.1837, allocations: 13.62 kB / 446.3 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.101e-05/0.1837, allocations: 13.81 kB / 446.3 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.1838, allocations: 25.91 kB / 446.3 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.1838, allocations: 49.39 kB / 446.4 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.184, allocations: 157.2 kB / 446.5 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.184, allocations: 0 / 446.5 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.184, allocations: 0 / 446.5 MB, free: 43.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.184, allocations: 0 / 446.5 MB, free: 43.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003895/0.1844, allocations: 369.6 kB / 446.9 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.1844, allocations: 10.62 kB / 446.9 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1845, allocations: 26.52 kB / 446.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.1847, allocations: 138.8 kB / 447.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.1847, allocations: 18.59 kB / 447.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.1847, allocations: 16.09 kB / 447.1 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.1849, allocations: 122.8 kB / 447.2 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1849, allocations: 4.141 kB / 447.2 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1849, allocations: 14.38 kB / 447.2 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1849, allocations: 3.031 kB / 447.2 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.185, allocations: 85.62 kB / 447.3 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004068/0.1855, allocations: 363.4 kB / 447.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.1856, allocations: 110 kB / 447.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.165e-05/0.1857, allocations: 56.91 kB / 447.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.1857, allocations: 3.188 kB / 447.8 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.492e-05/0.1857, allocations: 41.62 kB / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.844e-06/0.1857, allocations: 0 / 447.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008454/0.1865, allocations: 0.6601 MB / 448.5 MB, free: 41.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.1866, allocations: 58.31 kB / 448.6 MB, free: 41.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.871e-05/0.1866, allocations: 123.6 kB / 448.7 MB, free: 41.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-06/0.1866, allocations: 29.7 kB / 448.8 MB, free: 41.74 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.1867, allocations: 120.8 kB / 448.9 MB, free: 41.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.1867, allocations: 70.61 kB / 448.9 MB, free: 41.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-05/0.1867, allocations: 37.27 kB / 449 MB, free: 41.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.476e-05/0.1868, allocations: 324.2 kB / 449.3 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.542e-05/0.1868, allocations: 46.22 kB / 449.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-05/0.1869, allocations: 74.89 kB / 449.4 MB, free: 41.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.187, allocations: 133.6 kB / 449.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.187, allocations: 0 / 449.5 MB, free: 41.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000201/0.1872, allocations: 203.5 kB / 449.7 MB, free: 40.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1872, allocations: 5.562 kB / 449.7 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1872, allocations: 4.281 kB / 449.8 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001229/0.1874, allocations: 38.91 kB / 449.8 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1875, allocations: 42.98 kB / 449.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007849/0.1883, allocations: 1.599 MB / 451.4 MB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.752e-05/0.1883, allocations: 10.28 kB / 451.4 MB, free: 39.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.1883, allocations: 8.391 kB / 451.4 MB, free: 39.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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 6.881e-05/0.1884, allocations: 135.5 kB / 451.6 MB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.1884, allocations: 13.66 kB / 451.6 MB, free: 39.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.903e-05/0.1884, allocations: 12.78 kB / 451.6 MB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1884, allocations: 2.75 kB / 451.6 MB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1884, allocations: 3 kB / 451.6 MB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1884, allocations: 7.344 kB / 451.6 MB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003906/0.1888, allocations: 489.3 kB / 452.1 MB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1888, allocations: 0 / 452.1 MB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.296e-05/0.1889, allocations: 36.55 kB / 452.1 MB, free: 38.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.435e-05/0.189, allocations: 31.14 kB / 452.2 MB, free: 38.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.189, allocations: 4 kB / 452.2 MB, free: 38.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004595/0.1895, allocations: 1.348 MB / 453.5 MB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1895, allocations: 0 / 453.5 MB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1897, allocations: 348.3 kB / 453.9 MB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-06/0.1897, allocations: 10.92 kB / 453.9 MB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-06/0.1897, allocations: 6.328 kB / 453.9 MB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.387e-05/0.1898, allocations: 6.906 kB / 453.9 MB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.1898, allocations: 17.73 kB / 453.9 MB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.1898, allocations: 5.781 kB / 453.9 MB, free: 37.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.611e-05/0.1898, allocations: 100.3 kB / 454 MB, free: 37.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1898, allocations: 3.938 kB / 454 MB, free: 37.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.19, allocations: 41.94 kB / 454 MB, free: 37.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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 7.685e-05/0.1901, allocations: 94.72 kB / 454.1 MB, free: 37.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003053/0.1904, allocations: 261.6 kB / 454.4 MB, free: 37.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1904, allocations: 0 / 454.4 MB, free: 37.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.1905, allocations: 193 kB / 454.6 MB, free: 36.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.1907, allocations: 25.73 kB / 454.6 MB, free: 36.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.1912, allocations: 402.9 kB / 455 MB, free: 36.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.644e-05/0.1913, allocations: 108.8 kB / 455.1 MB, free: 36.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.123e-05/0.1913, allocations: 20.03 kB / 455.1 MB, free: 36.54 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1913, allocations: 0 / 455.1 MB, free: 36.54 MB / 410.7 MB Notification: Performance of Templates: time 0.002717/0.194, allocations: 2.486 MB / 457.6 MB, free: 36.34 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 5.295168347656727]