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.001483/0.001483, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.001567/0.001567, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 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 1.607/1.607, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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.2258/0.2258, allocations: 46.93 MB / 357.1 MB, free: 10.28 MB / 286.1 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 0.003329/0.003329, allocations: 71.89 kB / 0.4914 GB, free: 7.441 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1824, allocations: 66 MB / 0.5558 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00379/0.1862, allocations: 1.928 MB / 0.5577 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.1876, allocations: 0.5805 MB / 0.5583 GB, free: 2.793 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.1878, allocations: 4 kB / 0.5583 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.188, allocations: 19.73 kB / 0.5583 GB, free: 2.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.1882, allocations: 43.62 kB / 0.5584 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.1886, allocations: 43.89 kB / 0.5584 GB, free: 2.684 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.1888, allocations: 151.2 kB / 0.5585 GB, free: 2.535 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.189, allocations: 53.64 kB / 0.5586 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1892, allocations: 63.84 kB / 0.5587 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1894, allocations: 67.62 kB / 0.5587 GB, free: 2.352 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1894, allocations: 12 kB / 0.5587 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.202e-05/0.1895, allocations: 16 kB / 0.5587 GB, free: 2.324 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.95e-05/0.1895, allocations: 27.86 kB / 0.5588 GB, free: 2.297 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.595e-05/0.1896, allocations: 71.66 kB / 0.5588 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.19, allocations: 155.3 kB / 0.559 GB, free: 2.074 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.19, allocations: 0 / 0.559 GB, free: 2.074 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.19, allocations: 0 / 0.559 GB, free: 2.074 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.19, allocations: 0 / 0.559 GB, free: 2.074 MB / 414.1 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.0008664/0.1908, allocations: 438.8 kB / 0.5594 GB, free: 1.598 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.1909, allocations: 8.031 kB / 0.5594 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.1911, allocations: 28.83 kB / 0.5594 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.1914, allocations: 216.1 kB / 0.5596 GB, free: 1.312 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.1914, allocations: 8.375 kB / 0.5597 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.1915, allocations: 16.33 kB / 0.5597 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.1918, allocations: 129.8 kB / 0.5598 GB, free: 1.156 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.1918, allocations: 3.938 kB / 0.5598 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.1918, allocations: 7.984 kB / 0.5598 GB, free: 1.145 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1919, allocations: 4 kB / 0.5598 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002363/0.1921, allocations: 83.94 kB / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000849/0.1929, allocations: 456.4 kB / 0.5603 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.1932, allocations: 126.3 kB / 0.5604 GB, free: 440 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1933, allocations: 48.84 kB / 0.5605 GB, free: 388 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.1933, allocations: 4 kB / 0.5605 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.1934, allocations: 30.56 kB / 0.5605 GB, free: 344 kB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.263e-06/0.1934, allocations: 0 / 0.5605 GB, free: 344 kB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001777/0.1952, allocations: 0.8231 MB / 0.5613 GB, free: 15.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.1952, allocations: 59.34 kB / 0.5614 GB, free: 15.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.1954, allocations: 142.8 kB / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1954, allocations: 33.7 kB / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.1955, allocations: 108.4 kB / 0.5617 GB, free: 15.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/0.1955, allocations: 71.38 kB / 0.5617 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/0.1956, allocations: 33.72 kB / 0.5618 GB, free: 14.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1958, allocations: 326.8 kB / 0.5621 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1959, allocations: 43.97 kB / 0.5621 GB, free: 14.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.196, allocations: 79.34 kB / 0.5622 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.1963, allocations: 131.3 kB / 0.5623 GB, free: 14.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1963, allocations: 0 / 0.5623 GB, free: 14.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004388/0.1967, allocations: 218.1 kB / 0.5625 GB, free: 14.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1967, allocations: 7.938 kB / 0.5625 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1967, allocations: 8.031 kB / 0.5625 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.1969, allocations: 40.83 kB / 0.5626 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.1971, allocations: 35.92 kB / 0.5626 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.199, allocations: 1.733 MB / 0.5643 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.832e-05/0.199, allocations: 8 kB / 0.5643 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.1991, allocations: 4 kB / 0.5643 GB, free: 12.14 MB / 430.1 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 0.0001326/0.1992, allocations: 132.1 kB / 0.5644 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.1992, allocations: 12.16 kB / 0.5644 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.694e-05/0.1993, allocations: 21.17 kB / 0.5645 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1993, allocations: 3.938 kB / 0.5645 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.1993, allocations: 8 kB / 0.5645 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1993, allocations: 3.938 kB / 0.5645 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008728/0.2002, allocations: 0.5486 MB / 0.565 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2002, allocations: 0 / 0.565 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.2004, allocations: 39.86 kB / 0.5651 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001202/0.2005, allocations: 32.83 kB / 0.5651 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2005, allocations: 4 kB / 0.5651 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.2018, allocations: 1.477 MB / 0.5665 GB, free: 9.648 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2018, allocations: 4.031 kB / 0.5665 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.2024, allocations: 347 kB / 0.5669 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/0.2024, allocations: 93.03 kB / 0.567 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.2024, allocations: 8 kB / 0.567 GB, free: 9.168 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.2025, allocations: 4 kB / 0.567 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.2026, allocations: 15.92 kB / 0.567 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.2026, allocations: 12.06 kB / 0.567 GB, free: 9.137 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.465e-05/0.2027, allocations: 109.7 kB / 0.5671 GB, free: 9.031 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2027, allocations: 0 / 0.5671 GB, free: 9.031 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00034/0.203, allocations: 40 kB / 0.5671 GB, free: 8.992 MB / 430.1 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 0.0001276/0.2032, allocations: 99.19 kB / 0.5672 GB, free: 8.887 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005924/0.2038, allocations: 262.8 kB / 0.5675 GB, free: 8.617 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2038, allocations: 0 / 0.5675 GB, free: 8.617 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.2041, allocations: 186.6 kB / 0.5677 GB, free: 8.422 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.2044, allocations: 22.17 kB / 0.5677 GB, free: 8.402 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009333/0.2054, allocations: 448.6 kB / 0.5681 GB, free: 7.938 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.2058, allocations: 0.7204 MB / 0.5688 GB, free: 7.188 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.247e-05/0.2058, allocations: 17.42 kB / 0.5688 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.066e-05/0.2059, allocations: 15.44 kB / 0.5688 GB, free: 7.156 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2059, allocations: 0 / 0.5688 GB, free: 7.156 MB / 430.1 MB Notification: Performance of Templates: time 0.005804/0.2117, allocations: 1.655 MB / 0.5705 GB, free: 5.508 MB / 430.1 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.445215564221144]