Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.0008582/0.0008582, allocations: 83.69 kB / 20.67 MB, free: 3.883 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.001102/0.001102, allocations: 174 kB / 23.95 MB, free: 0.6055 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.8773/0.8773, allocations: 177.1 MB / 204.3 MB, free: 5.742 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.2335/0.2335, allocations: 32.79 MB / 293.5 MB, free: 1.215 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.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 439.5 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.328e-05, allocations: 2.844 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0009123/0.0009255, allocations: 498.4 kB / 440 MB, free: 3.801 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.002283, allocations: 1.352 MB / 441.4 MB, free: 2.441 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.292e-05/0.002306, allocations: 0 / 441.4 MB, free: 2.441 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.002322, allocations: 4 kB / 441.4 MB, free: 2.438 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.002514, allocations: 11.92 kB / 441.4 MB, free: 2.426 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008057/0.00332, allocations: 259.7 kB / 441.7 MB, free: 2.176 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.188e-05/0.003372, allocations: 4 kB / 441.7 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.45e-05/0.003407, allocations: 0 / 441.7 MB, free: 2.172 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.328e-05/0.00344, allocations: 15.92 kB / 441.7 MB, free: 2.156 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.5e-05/0.003475, allocations: 0 / 441.7 MB, free: 2.156 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.894e-06/0.003483, allocations: 0 / 441.7 MB, free: 2.156 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.005039, allocations: 0.7074 MB / 442.4 MB, free: 1.566 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.785e-06/0.005047, allocations: 4 kB / 442.4 MB, free: 1.562 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.959e-05/0.005067, allocations: 4 kB / 442.4 MB, free: 1.559 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.005313, allocations: 211.4 kB / 442.6 MB, free: 1.352 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.005315, allocations: 3.938 kB / 442.6 MB, free: 1.348 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.005316, allocations: 4 kB / 442.6 MB, free: 1.344 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.00532, allocations: 0 / 442.6 MB, free: 1.344 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002865/0.005607, allocations: 311.7 kB / 442.9 MB, free: 1.004 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.005641, allocations: 8.031 kB / 442.9 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.083e-05/0.005662, allocations: 34.75 kB / 443 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.988e-05/0.005682, allocations: 0.9375 kB / 443 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.563e-05/0.005747, allocations: 105.8 kB / 443.1 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.005757, allocations: 384 / 443.1 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.662e-06/0.005763, allocations: 4.375 kB / 443.1 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.687e-05/0.00584, allocations: 59.95 kB / 443.1 MB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.005847, allocations: 4.172 kB / 443.1 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.005856, allocations: 3.938 kB / 443.1 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.00586, allocations: 0 / 443.1 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.03e-05/0.00588, allocations: 29.7 kB / 443.2 MB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.577e-05/0.005976, allocations: 120.7 kB / 443.3 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.91e-05/0.006015, allocations: 48.3 kB / 443.3 MB, free: 496 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.006033, allocations: 38.56 kB / 443.4 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.006039, allocations: 0 / 443.4 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.006069, allocations: 64.33 kB / 443.4 MB, free: 368 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.00607, allocations: 3.938 kB / 443.4 MB, free: 364 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001471/0.006217, allocations: 126.7 kB / 443.6 MB, free: 212 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.00625, allocations: 81.11 kB / 443.6 MB, free: 112 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.865e-05/0.006299, allocations: 93.86 kB / 443.7 MB, free: 8 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1552/0.1615, allocations: 25.7 kB / 443.7 MB, free: 46.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.492e-05/0.1615, allocations: 80.14 kB / 443.8 MB, free: 46.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.1616, allocations: 9.422 kB / 443.8 MB, free: 46.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.1616, allocations: 15.64 kB / 443.9 MB, free: 46.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.209e-05/0.1616, allocations: 312.3 kB / 444.2 MB, free: 46.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.643e-05/0.1617, allocations: 31.84 kB / 444.2 MB, free: 46.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.402e-05/0.1617, allocations: 25.7 kB / 444.2 MB, free: 46.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.1617, allocations: 64.95 kB / 444.3 MB, free: 46.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.1617, allocations: 0 / 444.3 MB, free: 46.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.963e-05/0.1618, allocations: 95.27 kB / 444.4 MB, free: 46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.1618, allocations: 32.67 kB / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1618, allocations: 5.188 kB / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.1619, allocations: 3.469 kB / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.1619, allocations: 2.125 kB / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1619, allocations: 3.75 kB / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.839e-05/0.1619, allocations: 0 / 444.4 MB, free: 45.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1619, allocations: 2.688 kB / 444.4 MB, free: 45.97 MB / 410.7 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 5.522e-05/0.162, allocations: 139.3 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-06/0.162, allocations: 2.094 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.499e-05/0.162, allocations: 3.156 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.162, allocations: 0.5625 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.162, allocations: 9.438 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.162, allocations: 3.375 kB / 444.6 MB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.402e-05/0.1621, allocations: 119.1 kB / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1621, allocations: 0 / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.1621, allocations: 2.625 kB / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.12e-07/0.1621, allocations: 0 / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-06/0.1621, allocations: 0 / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1621, allocations: 3.141 kB / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1621, allocations: 9.812 kB / 444.7 MB, free: 45.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.637e-05/0.1621, allocations: 118.3 kB / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-06/0.1622, allocations: 0 / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.1622, allocations: 0 / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.698e-06/0.1622, allocations: 2.844 kB / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.1622, allocations: 3.938 kB / 444.8 MB, free: 45.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.1622, allocations: 1.25 kB / 444.8 MB, free: 45.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.161e-05/0.1622, allocations: 81.44 kB / 444.9 MB, free: 45.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1622, allocations: 0 / 444.9 MB, free: 45.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003022/0.1625, allocations: 67.78 kB / 445 MB, free: 45.46 MB / 410.7 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.0007495/0.1633, allocations: 0.9028 MB / 445.9 MB, free: 44.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.511e-05/0.1634, allocations: 111.6 kB / 446 MB, free: 44.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1634, allocations: 3.844 kB / 446 MB, free: 44.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.467e-05/0.1634, allocations: 83.89 kB / 446.1 MB, free: 44.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001027/0.1635, allocations: 6.062 kB / 446.1 MB, free: 44.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002808/0.1638, allocations: 172.2 kB / 446.2 MB, free: 44.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.384e-05/0.1638, allocations: 53.86 kB / 446.3 MB, free: 44.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.386e-06/0.1638, allocations: 0 / 446.3 MB, free: 44.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.1638, allocations: 17.41 kB / 446.3 MB, free: 44.34 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1638, allocations: 0 / 446.3 MB, free: 44.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.1794, allocations: 3.225 MB / 449.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.796/6.975, allocations: 16.72 kB / 449.6 MB, free: 43.29 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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: 8.833972259424627]