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.001102/0.001102, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001229/0.001229, allocations: 194 kB / 18.12 MB, free: 5.363 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.366/1.366, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.2105/0.2105, allocations: 44.17 MB / 336.1 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 68.14 kB / 407.8 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1203, allocations: 60.83 MB / 468.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001677/0.122, allocations: 0.5331 MB / 469.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005682/0.1226, allocations: 253 kB / 469.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.26e-05/0.1226, allocations: 0 / 469.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.1227, allocations: 7.938 kB / 469.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.987e-06/0.1227, allocations: 4 kB / 469.4 MB, free: 13.98 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.000248/0.1229, allocations: 47.88 kB / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.864e-05/0.123, allocations: 0 / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.629e-05/0.123, allocations: 0 / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.333e-05/0.123, allocations: 4 kB / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.756e-05/0.1231, allocations: 3.938 kB / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.755e-06/0.1231, allocations: 0 / 469.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.1232, allocations: 59.95 kB / 469.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-06/0.1232, allocations: 0 / 469.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.1232, allocations: 7.984 kB / 469.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.1234, allocations: 47.94 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1234, allocations: 11.94 kB / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1234, allocations: 0 / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.925e-06/0.1234, allocations: 0 / 469.6 MB, free: 13.8 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.0003022/0.1237, allocations: 353.3 kB / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1237, allocations: 8.031 kB / 469.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.012e-05/0.1238, allocations: 34.69 kB / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.655e-05/0.1238, allocations: 8.938 kB / 470 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.331e-05/0.1239, allocations: 164.4 kB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1239, allocations: 384 / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.316e-06/0.1239, allocations: 4.375 kB / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.852e-05/0.124, allocations: 30.27 kB / 470.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.124, allocations: 3.938 kB / 470.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-06/0.124, allocations: 0 / 470.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.124, allocations: 0 / 470.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.555e-05/0.1241, allocations: 0 / 470.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.1242, allocations: 153.7 kB / 470.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.542e-05/0.1242, allocations: 18.52 kB / 470.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.305e-05/0.1243, allocations: 8.859 kB / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.1243, allocations: 0 / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.1243, allocations: 60.36 kB / 470.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1243, allocations: 0 / 470.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.1245, allocations: 71.33 kB / 470.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.1245, allocations: 81.05 kB / 470.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.628e-05/0.1246, allocations: 89.86 kB / 470.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.1246, allocations: 25.83 kB / 470.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.1246, allocations: 84.14 kB / 470.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.1247, allocations: 3.938 kB / 470.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.629e-05/0.1247, allocations: 13.72 kB / 470.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1248, allocations: 314.8 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.1248, allocations: 0 / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.1248, allocations: 4 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.35e-05/0.1249, allocations: 60.25 kB / 471.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1249, allocations: 8.062 kB / 471.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.692e-05/0.125, allocations: 55.41 kB / 471.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.125, allocations: 37.64 kB / 471.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.125, allocations: 3.938 kB / 471.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.125, allocations: 3.938 kB / 471.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.125, allocations: 0 / 471.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.125, allocations: 0 / 471.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.1251, allocations: 0 / 471.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.1251, allocations: 3.984 kB / 471.3 MB, free: 11.84 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 0.0001019/0.1252, allocations: 143.6 kB / 471.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.1252, allocations: 0 / 471.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.276e-05/0.1252, allocations: 11.02 kB / 471.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1252, allocations: 0 / 471.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1252, allocations: 4 kB / 471.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1252, allocations: 0 / 471.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.1253, allocations: 145.7 kB / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1254, allocations: 0 / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1254, allocations: 0 / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1254, allocations: 0 / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1254, allocations: 11.94 kB / 471.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1254, allocations: 3.984 kB / 471.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1254, allocations: 4 kB / 471.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.1255, allocations: 98.75 kB / 471.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.1256, allocations: 85.28 kB / 471.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.1256, allocations: 3.938 kB / 471.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.1256, allocations: 0 / 471.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.1256, allocations: 4.031 kB / 471.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.1256, allocations: 4 kB / 471.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.574e-05/0.1256, allocations: 79.28 kB / 471.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.1256, allocations: 0 / 471.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1259, allocations: 27.92 kB / 471.9 MB, free: 11.12 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.0007644/0.1266, allocations: 0.8035 MB / 472.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.1268, allocations: 63.34 kB / 472.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1268, allocations: 0 / 472.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.077e-05/0.1268, allocations: 55.41 kB / 472.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1269, allocations: 0 / 472.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.1272, allocations: 120.3 kB / 472.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.1275, allocations: 0.677 MB / 473.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.1275, allocations: 0 / 473.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.1275, allocations: 11.56 kB / 473.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1275, allocations: 0 / 473.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.1478, allocations: 1.489 MB / 475.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.148, allocations: 225.2 kB / 475.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.034, allocations: 4 kB / 475.3 MB, free: 7.668 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