Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001309/0.001309, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009441/0.0009441, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9104/0.9104, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2392/0.2392, allocations: 32.79 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] 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.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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 439.6 MB, free: 4.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.297e-05, allocations: 2.281 kB / 439.6 MB, free: 4.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003082/0.003105, allocations: 2.626 MB / 442.2 MB, free: 1.645 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.004305, allocations: 0.9503 MB / 443.1 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.004455, allocations: 7.938 kB / 443.1 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.004614, allocations: 59.44 kB / 443.2 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.004748, allocations: 111 kB / 443.3 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.00514, allocations: 159.4 kB / 443.5 MB, free: 368 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1998/0.2049, allocations: 388.3 kB / 443.8 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003506/0.2053, allocations: 60.38 kB / 443.9 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.2056, allocations: 205.7 kB / 444.1 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.2057, allocations: 113 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.2057, allocations: 25.31 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.2059, allocations: 53.05 kB / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.559e-05/0.2059, allocations: 63.69 kB / 444.3 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.206, allocations: 111.8 kB / 444.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.2063, allocations: 383.2 kB / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2063, allocations: 5.281 kB / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2063, allocations: 0 / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2063, allocations: 0 / 444.8 MB, free: 43.27 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0006343/0.2069, allocations: 0.5259 MB / 445.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.207, allocations: 8.938 kB / 445.4 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.116e-05/0.207, allocations: 69.23 kB / 445.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.2072, allocations: 59.48 kB / 445.5 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.2076, allocations: 217.2 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.2076, allocations: 22.44 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.2076, allocations: 42.73 kB / 445.8 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.208, allocations: 302.5 kB / 446.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.208, allocations: 8.891 kB / 446.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.2081, allocations: 14.22 kB / 446.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2081, allocations: 11.5 kB / 446.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.2083, allocations: 180.3 kB / 446.3 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.2093, allocations: 1.214 MB / 447.5 MB, free: 41.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002843/0.2096, allocations: 243.3 kB / 447.7 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.174e-05/0.2097, allocations: 78.2 kB / 447.8 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.2097, allocations: 2.938 kB / 447.8 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.2097, allocations: 37.38 kB / 447.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/0.2097, allocations: 3.812 kB / 447.8 MB, free: 41.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003383/0.21, allocations: 220.3 kB / 448.1 MB, free: 41.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.2101, allocations: 162.9 kB / 448.2 MB, free: 41.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.2102, allocations: 223 kB / 448.4 MB, free: 41.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.2102, allocations: 34.77 kB / 448.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.2103, allocations: 199.4 kB / 448.7 MB, free: 41.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.2103, allocations: 99.53 kB / 448.8 MB, free: 41.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.436e-05/0.2104, allocations: 64.66 kB / 448.8 MB, free: 41.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.158e-05/0.2104, allocations: 337.6 kB / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.332e-05/0.2105, allocations: 64.83 kB / 449.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.2106, allocations: 204.7 kB / 449.4 MB, free: 40.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.2108, allocations: 300.6 kB / 449.7 MB, free: 40.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.2108, allocations: 2.906 kB / 449.7 MB, free: 40.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002707/0.2111, allocations: 316.8 kB / 450 MB, free: 40.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.2111, allocations: 8.781 kB / 450 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2111, allocations: 5.75 kB / 450 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.2111, allocations: 5.781 kB / 450 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2113, allocations: 92.7 kB / 450.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2113, allocations: 8.75 kB / 450.1 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.017e-05/0.2114, allocations: 40.86 kB / 450.2 MB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.2114, allocations: 23.55 kB / 450.2 MB, free: 40.16 MB / 410.7 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 7.812e-05/0.2115, allocations: 152.2 kB / 450.4 MB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.2115, allocations: 23.36 kB / 450.4 MB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.2116, allocations: 89.33 kB / 450.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.2116, allocations: 5.781 kB / 450.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2117, allocations: 3.938 kB / 450.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2117, allocations: 2.938 kB / 450.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.212, allocations: 267.7 kB / 450.7 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.212, allocations: 7.125 kB / 450.7 MB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.2121, allocations: 70.16 kB / 450.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2122, allocations: 2.844 kB / 450.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2122, allocations: 6.938 kB / 450.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2122, allocations: 2.812 kB / 450.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2122, allocations: 6.656 kB / 450.8 MB, free: 39.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.2125, allocations: 0.6335 MB / 451.5 MB, free: 39.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.2125, allocations: 19.7 kB / 451.5 MB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.2125, allocations: 9.812 kB / 451.5 MB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.2126, allocations: 15.45 kB / 451.5 MB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.145e-05/0.2127, allocations: 20.33 kB / 451.5 MB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.2127, allocations: 9.844 kB / 451.5 MB, free: 39.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.409e-05/0.2127, allocations: 152.1 kB / 451.7 MB, free: 39.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2127, allocations: 2.906 kB / 451.7 MB, free: 39.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003198/0.2131, allocations: 85.12 kB / 451.8 MB, free: 39.07 MB / 410.7 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.0003662/0.2134, allocations: 1.184 MB / 453 MB, free: 38.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.2136, allocations: 181 kB / 453.1 MB, free: 38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2136, allocations: 0 / 453.1 MB, free: 38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.642e-05/0.2137, allocations: 72.62 kB / 453.2 MB, free: 37.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005056/0.2142, allocations: 57.91 kB / 453.3 MB, free: 37.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.2162, allocations: 3.337 MB / 456.6 MB, free: 35.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.2163, allocations: 168.1 kB / 456.8 MB, free: 35.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.645e-05/0.2164, allocations: 29.7 kB / 456.8 MB, free: 35.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/0.2165, allocations: 93.28 kB / 456.9 MB, free: 35.24 MB / 410.7 MB Notification: Performance of SimCode: time 1.143e-06/0.2165, allocations: 0 / 456.9 MB, free: 35.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.236, allocations: 6.322 MB / 463.2 MB, free: 33.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.821/7.057, allocations: 17.48 kB / 463.2 MB, free: 33.85 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 9.071393802762032]