Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009861/0.0009861, allocations: 80.05 kB / 20.72 MB, free: 3.77 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.001179/0.001179, allocations: 169 kB / 24.14 MB, free: 360 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 158.6 MB / 186 MB, free: 2.547 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1448/0.1448, allocations: 32.38 MB / 270.7 MB, free: 14.57 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 299 MB, free: 2.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.666e-05, allocations: 2.312 kB / 299 MB, free: 2.199 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003485/0.003512, allocations: 1.938 MB / 301 MB, free: 252 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1763/0.1798, allocations: 0.529 MB / 301.5 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.1799, allocations: 6.406 kB / 301.5 MB, free: 19.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.18, allocations: 23.94 kB / 301.5 MB, free: 19.24 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.589e-05/0.1801, allocations: 43.95 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001775/0.1803, allocations: 38.33 kB / 301.6 MB, free: 19.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.1805, allocations: 150.2 kB / 301.8 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.1806, allocations: 47.98 kB / 301.8 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.1808, allocations: 87.12 kB / 301.9 MB, free: 19.17 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1809, allocations: 51.98 kB / 301.9 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.1809, allocations: 11.41 kB / 302 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.036e-05/0.1809, allocations: 12.31 kB / 302 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.479e-05/0.1809, allocations: 27.97 kB / 302 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.918e-05/0.181, allocations: 48.55 kB / 302 MB, free: 19.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.1812, allocations: 99.56 kB / 302.1 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1812, allocations: 0 / 302.1 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1812, allocations: 0.5625 kB / 302.1 MB, free: 19.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1812, allocations: 0 / 302.1 MB, free: 19.14 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003707/0.1815, allocations: 339.1 kB / 302.5 MB, free: 18.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.1816, allocations: 10.98 kB / 302.5 MB, free: 18.87 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.1816, allocations: 21.44 kB / 302.5 MB, free: 18.87 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.1817, allocations: 136.4 kB / 302.6 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1818, allocations: 9.969 kB / 302.7 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.1818, allocations: 13.81 kB / 302.7 MB, free: 18.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.1819, allocations: 114.9 kB / 302.8 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.182, allocations: 3.406 kB / 302.8 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.182, allocations: 10.69 kB / 302.8 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.182, allocations: 2.188 kB / 302.8 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.593e-05/0.182, allocations: 37.84 kB / 302.8 MB, free: 18.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003721/0.1824, allocations: 286.4 kB / 303.1 MB, free: 18.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.1825, allocations: 75.89 kB / 303.2 MB, free: 18.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.549e-05/0.1826, allocations: 29.2 kB / 303.2 MB, free: 18.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.1826, allocations: 8.594 kB / 303.2 MB, free: 18.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.1826, allocations: 36.09 kB / 303.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.102e-06/0.1826, allocations: 0 / 303.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008226/0.1834, allocations: 0.5539 MB / 303.8 MB, free: 18.13 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.918e-05/0.1834, allocations: 53.66 kB / 303.9 MB, free: 18.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.201e-05/0.1835, allocations: 131 kB / 304 MB, free: 17.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.1835, allocations: 29.98 kB / 304 MB, free: 17.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.1835, allocations: 111.4 kB / 304.1 MB, free: 17.83 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.1836, allocations: 73.78 kB / 304.2 MB, free: 17.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.1836, allocations: 36.52 kB / 304.2 MB, free: 17.77 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.604e-05/0.1836, allocations: 324 kB / 304.6 MB, free: 17.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.293e-05/0.1837, allocations: 13.84 kB / 304.6 MB, free: 17.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.285e-05/0.1837, allocations: 48.08 kB / 304.6 MB, free: 17.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.568e-05/0.1838, allocations: 80.94 kB / 304.7 MB, free: 17.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1838, allocations: 1.125 kB / 304.7 MB, free: 17.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001651/0.184, allocations: 134.6 kB / 304.8 MB, free: 17.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.184, allocations: 9.953 kB / 304.8 MB, free: 17.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.184, allocations: 1.031 kB / 304.8 MB, free: 17.33 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001163/0.1841, allocations: 35.39 kB / 304.9 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1842, allocations: 36.14 kB / 304.9 MB, free: 17.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006918/0.1849, allocations: 1.431 MB / 306.3 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.855e-05/0.1849, allocations: 2.328 kB / 306.3 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1849, allocations: 8.422 kB / 306.3 MB, free: 16.04 MB / 282.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 5.685e-05/0.185, allocations: 117 kB / 306.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.185, allocations: 19.25 kB / 306.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.185, allocations: 18.38 kB / 306.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.185, allocations: 1.312 kB / 306.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1851, allocations: 1.469 kB / 306.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1851, allocations: 0.75 kB / 306.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.1854, allocations: 349.4 kB / 306.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1854, allocations: 1.281 kB / 306.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.062e-05/0.1855, allocations: 36.72 kB / 306.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.357e-05/0.1856, allocations: 24.23 kB / 306.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.1856, allocations: 5.734 kB / 306.9 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000457/0.186, allocations: 1.219 MB / 308.1 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.186, allocations: 1.031 kB / 308.1 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.1862, allocations: 242.7 kB / 308.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.153e-05/0.1862, allocations: 12.84 kB / 308.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.1862, allocations: 2.797 kB / 308.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.168e-05/0.1863, allocations: 6.766 kB / 308.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.1863, allocations: 16.08 kB / 308.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.1863, allocations: 7.094 kB / 308.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.521e-05/0.1864, allocations: 28.2 kB / 308.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1864, allocations: 0 / 308.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001917/0.1866, allocations: 39.97 kB / 308.5 MB, free: 14.36 MB / 282.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 8.14e-05/0.1866, allocations: 77.3 kB / 308.6 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002613/0.1869, allocations: 226.4 kB / 308.8 MB, free: 14.15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1869, allocations: 9 kB / 308.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.187, allocations: 173.9 kB / 309 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.1872, allocations: 22.14 kB / 309 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007288/0.1879, allocations: 365.4 kB / 309.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.092e-05/0.188, allocations: 75.03 kB / 309.4 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.727e-05/0.188, allocations: 15.62 kB / 309.4 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.531e-05/0.1881, allocations: 65.8 kB / 309.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1881, allocations: 0 / 309.5 MB, free: 13.63 MB / 282.7 MB Notification: Performance of Templates: time 0.00457/0.1927, allocations: 1.718 MB / 311.2 MB, free: 13.46 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1387194232083857]