Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.00145, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 203.1 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.1 MB / 222.6 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4474/0.4474, allocations: 43.5 MB / 313.5 MB, free: 8.281 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 71.91 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1891, allocations: 57.79 MB / 439.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004476/0.1936, allocations: 2.736 MB / 442.6 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.1955, allocations: 0.9824 MB / 443.5 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.1957, allocations: 11.94 kB / 443.5 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.1959, allocations: 31.7 kB / 443.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.1961, allocations: 87.3 kB / 443.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.1966, allocations: 131.7 kB / 443.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.197, allocations: 366.2 kB / 444.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.1972, allocations: 69.69 kB / 444.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1973, allocations: 123.5 kB / 444.3 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.1975, allocations: 143.3 kB / 444.5 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.1976, allocations: 20 kB / 444.5 MB, free: 9.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1977, allocations: 35.98 kB / 444.5 MB, free: 9.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.22e-05/0.1978, allocations: 51.78 kB / 444.6 MB, free: 9.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.1979, allocations: 159.2 kB / 444.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.1984, allocations: 339 kB / 445.1 MB, free: 9.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.1984, allocations: 4 kB / 445.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1984, allocations: 3.938 kB / 445.1 MB, free: 9.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.1984, allocations: 0 / 445.1 MB, free: 9.336 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00103/0.1995, allocations: 0.5926 MB / 445.7 MB, free: 8.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/0.1996, allocations: 12.03 kB / 445.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.1998, allocations: 44.55 kB / 445.7 MB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.2001, allocations: 275.6 kB / 446 MB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.2002, allocations: 21.03 kB / 446 MB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-05/0.2002, allocations: 32.38 kB / 446 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.2008, allocations: 306.6 kB / 446.3 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.2009, allocations: 3.906 kB / 446.3 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2009, allocations: 16 kB / 446.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.2009, allocations: 8 kB / 446.4 MB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.2012, allocations: 179.8 kB / 446.5 MB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.2034, allocations: 1.344 MB / 447.9 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.2039, allocations: 241 kB / 448.1 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2041, allocations: 84.25 kB / 448.2 MB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.2041, allocations: 4.141 kB / 448.2 MB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.2042, allocations: 46.55 kB / 448.3 MB, free: 5.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.253e-06/0.2042, allocations: 0 / 448.3 MB, free: 5.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005624/0.2047, allocations: 217.2 kB / 448.5 MB, free: 5.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.2049, allocations: 162.2 kB / 448.6 MB, free: 5.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.2052, allocations: 216 kB / 448.8 MB, free: 5.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.2052, allocations: 29.83 kB / 448.9 MB, free: 5.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.2054, allocations: 188.1 kB / 449.1 MB, free: 5.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.23e-05/0.2055, allocations: 98.62 kB / 449.1 MB, free: 4.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2056, allocations: 61.7 kB / 449.2 MB, free: 4.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.2059, allocations: 334.8 kB / 449.5 MB, free: 4.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.206, allocations: 63.97 kB / 449.6 MB, free: 4.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.2064, allocations: 209.8 kB / 449.8 MB, free: 4.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.2069, allocations: 301.6 kB / 450.1 MB, free: 3.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.2069, allocations: 4 kB / 450.1 MB, free: 3.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005274/0.2075, allocations: 309.4 kB / 450.4 MB, free: 3.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.2075, allocations: 12 kB / 450.4 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.2075, allocations: 4 kB / 450.4 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.2076, allocations: 8.188 kB / 450.4 MB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.2079, allocations: 95.83 kB / 450.5 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.2079, allocations: 4 kB / 450.5 MB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.2081, allocations: 35.59 kB / 450.6 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/0.2082, allocations: 20 kB / 450.6 MB, free: 3.332 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0002145/0.2084, allocations: 161.5 kB / 450.7 MB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.2085, allocations: 23.81 kB / 450.8 MB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.2087, allocations: 83.08 kB / 450.8 MB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2087, allocations: 4 kB / 450.8 MB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.2088, allocations: 4 kB / 450.8 MB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2088, allocations: 0 / 450.8 MB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007138/0.2095, allocations: 317.3 kB / 451.2 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2095, allocations: 96 / 451.2 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.2099, allocations: 75.84 kB / 451.2 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.2099, allocations: 0 / 451.2 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.2099, allocations: 8 kB / 451.2 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.2099, allocations: 4 kB / 451.2 MB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2099, allocations: 4 kB / 451.2 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008399/0.2108, allocations: 0.6371 MB / 451.9 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.676e-05/0.2109, allocations: 100.8 kB / 452 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.2109, allocations: 15.98 kB / 452 MB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.2112, allocations: 4 kB / 452 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.2113, allocations: 15.98 kB / 452 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.2113, allocations: 8 kB / 452 MB, free: 1.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2114, allocations: 153.8 kB / 452.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2115, allocations: 0 / 452.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.212, allocations: 83.78 kB / 452.3 MB, free: 1.543 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.0001621/0.2122, allocations: 99.25 kB / 452.4 MB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00036/0.2125, allocations: 187.7 kB / 452.5 MB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2126, allocations: 0 / 452.5 MB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.2127, allocations: 78 kB / 452.6 MB, free: 1.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009295/0.2136, allocations: 60.78 kB / 452.7 MB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2491/0.4628, allocations: 1.221 MB / 453.9 MB, free: 48.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4631, allocations: 0.7746 MB / 454.7 MB, free: 47.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.4633, allocations: 30.23 kB / 454.7 MB, free: 47.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.015e-05/0.4634, allocations: 22.56 kB / 454.7 MB, free: 47.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4634, allocations: 0 / 454.7 MB, free: 47.73 MB / 382.1 MB Notification: Performance of Templates: time 0.005728/0.4692, allocations: 2.36 MB / 457.1 MB, free: 47.72 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches