Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.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.001894/0.001894, 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.002182/0.002182, 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.539/1.539, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.2426/0.2426, allocations: 46.92 MB / 357.1 MB, free: 10.4 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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 63.91 kB / 0.4914 GB, free: 7.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1736, allocations: 65.99 MB / 0.5558 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.006367/0.18, allocations: 3.049 MB / 0.5588 GB, free: 2.367 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003831/0.1838, allocations: 1.079 MB / 0.5599 GB, free: 1.285 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004182/0.1843, allocations: 11.94 kB / 0.5599 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.1846, allocations: 59.31 kB / 0.5599 GB, free: 1.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005001/0.1851, allocations: 127 kB / 0.56 GB, free: 1.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009303/0.186, allocations: 175.5 kB / 0.5602 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009149/0.1869, allocations: 453.8 kB / 0.5606 GB, free: 484 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.1873, allocations: 83.58 kB / 0.5607 GB, free: 392 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.1876, allocations: 163.4 kB / 0.5609 GB, free: 228 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004249/0.188, allocations: 179.2 kB / 0.5611 GB, free: 48 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.978e-05/0.1881, allocations: 28 kB / 0.5611 GB, free: 20 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.1883, allocations: 51.98 kB / 0.5611 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1885, allocations: 83.69 kB / 0.5612 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.1888, allocations: 195 kB / 0.5614 GB, free: 15.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008443/0.1897, allocations: 442.2 kB / 0.5618 GB, free: 15.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1897, allocations: 0 / 0.5618 GB, free: 15.26 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1897, allocations: 0 / 0.5618 GB, free: 15.26 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.1897, allocations: 0 / 0.5618 GB, free: 15.26 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001785/0.1915, allocations: 0.6741 MB / 0.5625 GB, free: 14.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.1915, allocations: 9.109 kB / 0.5625 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004775/0.192, allocations: 68.62 kB / 0.5625 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006494/0.1927, allocations: 295.3 kB / 0.5628 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.513e-05/0.1927, allocations: 29.38 kB / 0.5629 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.1929, allocations: 48.33 kB / 0.5629 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009444/0.1938, allocations: 363.5 kB / 0.5633 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.1938, allocations: 4 kB / 0.5633 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.1939, allocations: 16 kB / 0.5633 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.1939, allocations: 8 kB / 0.5633 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007261/0.1946, allocations: 227.7 kB / 0.5635 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.1983, allocations: 1.582 MB / 0.565 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009414/0.1992, allocations: 307.6 kB / 0.5653 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.1995, allocations: 89.12 kB / 0.5654 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1996, allocations: 8 kB / 0.5654 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.1996, allocations: 38.5 kB / 0.5655 GB, free: 11.22 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.625e-06/0.1996, allocations: 0 / 0.5655 GB, free: 11.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.001115/0.2007, allocations: 269.4 kB / 0.5657 GB, free: 10.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.2009, allocations: 191.9 kB / 0.5659 GB, free: 10.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.2014, allocations: 242.6 kB / 0.5661 GB, free: 10.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.2014, allocations: 33.7 kB / 0.5662 GB, free: 10.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.2017, allocations: 212.4 kB / 0.5664 GB, free: 10.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003021/0.202, allocations: 119 kB / 0.5665 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.2021, allocations: 70.09 kB / 0.5665 GB, free: 10.03 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003767/0.2025, allocations: 350.8 kB / 0.5669 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.2028, allocations: 80.84 kB / 0.567 GB, free: 9.598 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005003/0.2033, allocations: 259.9 kB / 0.5672 GB, free: 9.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009561/0.2043, allocations: 353.1 kB / 0.5675 GB, free: 8.848 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.2043, allocations: 4 kB / 0.5675 GB, free: 8.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001201/0.2055, allocations: 385.2 kB / 0.5679 GB, free: 8.461 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.2055, allocations: 11.98 kB / 0.5679 GB, free: 8.449 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.2055, allocations: 8.312 kB / 0.5679 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.385e-05/0.2056, allocations: 8.75 kB / 0.5679 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/0.2062, allocations: 107.8 kB / 0.568 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.333e-05/0.2062, allocations: 12.44 kB / 0.5681 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.2066, allocations: 47.72 kB / 0.5681 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.2066, allocations: 24.08 kB / 0.5681 GB, free: 8.246 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003193/0.2069, allocations: 165.5 kB / 0.5683 GB, free: 8.074 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.2072, allocations: 31.81 kB / 0.5683 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002912/0.2075, allocations: 87.39 kB / 0.5684 GB, free: 7.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.2075, allocations: 4 kB / 0.5684 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.2075, allocations: 4 kB / 0.5684 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.2075, allocations: 7.969 kB / 0.5684 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.2088, allocations: 349.3 kB / 0.5687 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.2088, allocations: 4 kB / 0.5688 GB, free: 7.539 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007927/0.2096, allocations: 83.89 kB / 0.5688 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.2096, allocations: 0 / 0.5688 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.2096, allocations: 11.98 kB / 0.5688 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2096, allocations: 4 kB / 0.5688 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.2096, allocations: 4 kB / 0.5689 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.2113, allocations: 0.7686 MB / 0.5696 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.2114, allocations: 104.9 kB / 0.5697 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.2115, allocations: 8 kB / 0.5697 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006051/0.2121, allocations: 8 kB / 0.5697 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.2122, allocations: 23.97 kB / 0.5697 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.2122, allocations: 8 kB / 0.5697 GB, free: 6.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003375/0.2126, allocations: 173.9 kB / 0.5699 GB, free: 6.312 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2126, allocations: 3.938 kB / 0.5699 GB, free: 6.309 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001229/0.2138, allocations: 99.84 kB / 0.57 GB, free: 6.211 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002327/0.214, allocations: 107.2 kB / 0.5701 GB, free: 6.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.2151, allocations: 227.9 kB / 0.5703 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2151, allocations: 0 / 0.5703 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000353/0.2154, allocations: 91.83 kB / 0.5704 GB, free: 5.785 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.2171, allocations: 81.23 kB / 0.5705 GB, free: 5.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.2211, allocations: 1.322 MB / 0.5718 GB, free: 4.344 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009703/0.222, allocations: 0.795 MB / 0.5726 GB, free: 3.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000267/0.2223, allocations: 34.95 kB / 0.5726 GB, free: 3.484 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.2224, allocations: 23.44 kB / 0.5726 GB, free: 3.461 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2224, allocations: 0 / 0.5726 GB, free: 3.461 MB / 430.1 MB Notification: Performance of Templates: time 0.01503/0.2375, allocations: 3.148 MB / 0.5757 GB, free: 352 kB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.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.596019629389048]