Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001993/0.001993, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.134/2.134, allocations: 222.9 MB / 242.4 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3414/0.3414, allocations: 44.19 MB / 336.8 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 64.73 kB / 408.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1671, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005575/0.1727, allocations: 2.645 MB / 471.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1745, allocations: 0.6467 MB / 472.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002971/0.1775, allocations: 8 kB / 472.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003552/0.1779, allocations: 31.72 kB / 472.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004847/0.1784, allocations: 79.33 kB / 472.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.1789, allocations: 71.92 kB / 472.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006243/0.1796, allocations: 322.5 kB / 473 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002651/0.1798, allocations: 61.83 kB / 473 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.1802, allocations: 115.5 kB / 473.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.1804, allocations: 135.4 kB / 473.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.039e-05/0.1805, allocations: 12 kB / 473.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.216e-05/0.1806, allocations: 16 kB / 473.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.306e-05/0.1807, allocations: 47.72 kB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1809, allocations: 139.2 kB / 473.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003013/0.1812, allocations: 211.7 kB / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1812, allocations: 0 / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1812, allocations: 0 / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.1812, allocations: 0 / 473.7 MB, free: 10.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001249/0.1825, allocations: 0.5886 MB / 474.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1825, allocations: 8.031 kB / 474.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.1827, allocations: 32.56 kB / 474.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.1831, allocations: 272.6 kB / 474.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01157/0.1947, allocations: 16.94 kB / 474.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.1949, allocations: 28.28 kB / 474.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008343/0.1958, allocations: 282.2 kB / 474.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/0.1959, allocations: 11.98 kB / 474.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.1959, allocations: 4 kB / 474.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.1959, allocations: 8 kB / 474.9 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005951/0.1965, allocations: 187.8 kB / 475.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.199, allocations: 1.313 MB / 476.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005558/0.1996, allocations: 242.4 kB / 476.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.1998, allocations: 103.5 kB / 476.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.1999, allocations: 4 kB / 476.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.1999, allocations: 34.56 kB / 476.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.885e-06/0.2, allocations: 0 / 476.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003449/0.2034, allocations: 1.577 MB / 478.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.927e-05/0.2035, allocations: 132.5 kB / 478.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000307/0.2039, allocations: 225 kB / 478.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.2039, allocations: 33.7 kB / 478.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.2041, allocations: 176.2 kB / 478.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2042, allocations: 126.2 kB / 479 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.2043, allocations: 66.14 kB / 479.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2045, allocations: 342.8 kB / 479.4 MB, free: 4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.2048, allocations: 100.8 kB / 479.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.2053, allocations: 229.5 kB / 479.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.2061, allocations: 364.8 kB / 480.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2062, allocations: 0 / 480.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001097/0.2073, allocations: 406 kB / 480.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.2073, allocations: 10.19 kB / 480.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.2073, allocations: 4.406 kB / 480.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/0.2074, allocations: 12.23 kB / 480.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005394/0.2079, allocations: 99.91 kB / 480.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/0.208, allocations: 7.938 kB / 480.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.2083, allocations: 31.97 kB / 480.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.08e-05/0.2084, allocations: 16 kB / 480.7 MB, free: 2.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0002206/0.2086, allocations: 158.1 kB / 480.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.2088, allocations: 31.64 kB / 480.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.511e-05/0.2089, allocations: 41.7 kB / 480.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.2089, allocations: 4 kB / 480.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.2089, allocations: 0 / 480.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.2089, allocations: 4 kB / 480.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.211, allocations: 0.9815 MB / 481.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.2111, allocations: 8.062 kB / 481.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/0.2116, allocations: 71.89 kB / 482 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/0.2116, allocations: 4 kB / 482 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.2117, allocations: 15.92 kB / 482 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.2117, allocations: 448 / 482 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2117, allocations: 4 kB / 482 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.213, allocations: 0.729 MB / 482.7 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.2132, allocations: 108.7 kB / 482.9 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.508e-05/0.2132, allocations: 12 kB / 482.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004275/0.2137, allocations: 15.98 kB / 482.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.339e-05/0.2138, allocations: 27.95 kB / 482.9 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/0.2138, allocations: 12 kB / 482.9 MB, free: 300 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.214, allocations: 156.5 kB / 483.1 MB, free: 140 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.214, allocations: 0 / 483.1 MB, free: 140 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007819/0.2148, allocations: 68 kB / 483.1 MB, free: 72 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.0001751/0.215, allocations: 111.2 kB / 483.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009118/0.2159, allocations: 272.4 kB / 483.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.2159, allocations: 4 kB / 483.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.2164, allocations: 127.8 kB / 483.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.2174, allocations: 43.59 kB / 483.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.2197, allocations: 1.016 MB / 484.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.2201, allocations: 0.7722 MB / 485.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.2203, allocations: 31.42 kB / 485.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 1.703e-06/0.2203, allocations: 0 / 485.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Templates: time 0.007971/0.2283, allocations: 3.299 MB / 488.8 MB, free: 10.32 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches