Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 106.7 kB / 17.33 MB, free: 6 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.001872/0.001872, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.9 MB, free: 15.39 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.1942/0.1942, allocations: 44.17 MB / 336.2 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002067, allocations: 59.81 kB / 408 MB, free: 27.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1423, allocations: 60.82 MB / 468.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001568/0.1439, allocations: 0.5332 MB / 469.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005335/0.1445, allocations: 249.8 kB / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.1445, allocations: 0 / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.788e-05/0.1445, allocations: 0 / 469.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.608e-06/0.1445, allocations: 0 / 469.6 MB, free: 13.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.1448, allocations: 43.89 kB / 469.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.733e-05/0.1449, allocations: 11.94 kB / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.1449, allocations: 4 kB / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.145, allocations: 0 / 469.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.862e-05/0.145, allocations: 7.922 kB / 469.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.914e-06/0.145, allocations: 0 / 469.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.1451, allocations: 59.95 kB / 469.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.1451, allocations: 4 kB / 469.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.139e-05/0.1452, allocations: 7.938 kB / 469.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.1453, allocations: 51.92 kB / 469.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1453, allocations: 0 / 469.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1453, allocations: 0 / 469.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1453, allocations: 0 / 469.8 MB, free: 13.7 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002869/0.1456, allocations: 365.2 kB / 470.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1456, allocations: 8.031 kB / 470.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.661e-05/0.1457, allocations: 30.75 kB / 470.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.1457, allocations: 4.938 kB / 470.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.82e-05/0.1458, allocations: 164.4 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.1458, allocations: 4.375 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-06/0.1458, allocations: 384 / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.043e-05/0.1459, allocations: 34.25 kB / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1459, allocations: 7.938 kB / 470.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.1459, allocations: 4 kB / 470.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1459, allocations: 0 / 470.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.656e-05/0.1459, allocations: 3.938 kB / 470.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001084/0.146, allocations: 141.7 kB / 470.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.419e-05/0.1461, allocations: 22.59 kB / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.171e-05/0.1461, allocations: 4.859 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-06/0.1461, allocations: 0 / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.1462, allocations: 68.33 kB / 470.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1462, allocations: 0 / 470.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.1463, allocations: 71.27 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.1464, allocations: 77.11 kB / 470.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.146e-05/0.1464, allocations: 89.86 kB / 470.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.1464, allocations: 25.7 kB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.171e-05/0.1465, allocations: 80.14 kB / 471 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.1465, allocations: 128 / 471 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.1465, allocations: 21.72 kB / 471 MB, free: 12.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.1466, allocations: 310.8 kB / 471.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.1466, allocations: 0 / 471.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-06/0.1466, allocations: 0 / 471.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.434e-05/0.1467, allocations: 64.25 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1467, allocations: 0 / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.228e-05/0.1468, allocations: 71.28 kB / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.1468, allocations: 36.77 kB / 471.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1468, allocations: 11.88 kB / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1468, allocations: 0 / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1468, allocations: 0 / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1468, allocations: 0 / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.1469, allocations: 0 / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1469, allocations: 3.984 kB / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 6.996e-05/0.1469, allocations: 135.5 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-06/0.147, allocations: 0 / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.199e-05/0.147, allocations: 15.02 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.147, allocations: 0 / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.147, allocations: 0 / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-06/0.147, allocations: 0 / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.25e-05/0.1471, allocations: 149.7 kB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1471, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1471, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-06/0.1471, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.1471, allocations: 3.938 kB / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1471, allocations: 0 / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1471, allocations: 8 kB / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.963e-05/0.1472, allocations: 98.77 kB / 471.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-05/0.1473, allocations: 81.3 kB / 471.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.1473, allocations: 7.938 kB / 472 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-06/0.1473, allocations: 0 / 472 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-06/0.1473, allocations: 0 / 472 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.1473, allocations: 0 / 472 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.209e-05/0.1473, allocations: 75.28 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1473, allocations: 4.031 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002102/0.1476, allocations: 23.98 kB / 472.1 MB, free: 11.03 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007218/0.1483, allocations: 0.8195 MB / 472.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.439e-05/0.1484, allocations: 59.41 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1484, allocations: 64 / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.715e-05/0.1484, allocations: 59.41 kB / 473 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.1486, allocations: 4 kB / 473 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002664/0.1488, allocations: 118.6 kB / 473.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.1491, allocations: 0.6768 MB / 473.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.1491, allocations: 0 / 473.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.217e-05/0.1491, allocations: 7.438 kB / 473.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1491, allocations: 0 / 473.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2314/0.3805, allocations: 1.537 MB / 475.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.3808, allocations: 225.3 kB / 475.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.494, allocations: 4.062 kB / 475.6 MB, free: 7.539 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches