Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001415, allocations: 109.3 kB / 18.39 MB, free: 4.758 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.001737/0.001737, allocations: 184.1 kB / 19.32 MB, free: 3.828 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.461/1.461, allocations: 222.9 MB / 243 MB, free: 15.08 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.2108/0.2108, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 63.12 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1268, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001683/0.1285, allocations: 486.8 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.1307, allocations: 1.303 MB / 472.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.315e-05/0.1308, allocations: 0 / 472.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.1308, allocations: 4 kB / 472.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.1308, allocations: 0 / 472.5 MB, free: 11.87 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.1321, allocations: 0.5803 MB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.354e-05/0.1322, allocations: 0 / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.599e-05/0.1322, allocations: 8 kB / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.58e-05/0.1322, allocations: 0 / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.811e-05/0.1323, allocations: 0 / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.483e-06/0.1323, allocations: 0 / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01246/0.1447, allocations: 2.528 MB / 475.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.508e-06/0.1448, allocations: 3.938 kB / 475.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.54e-05/0.1448, allocations: 4 kB / 475.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.1451, allocations: 159.8 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1451, allocations: 4 kB / 475.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1451, allocations: 0 / 475.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1451, allocations: 0 / 475.8 MB, free: 9.105 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.0003239/0.1455, allocations: 381.2 kB / 476.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1455, allocations: 8.031 kB / 476.1 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.1455, allocations: 12.88 kB / 476.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.832e-05/0.1456, allocations: 164.4 kB / 476.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.1456, allocations: 384 / 476.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-06/0.1457, allocations: 384 / 476.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.571e-05/0.1457, allocations: 33.83 kB / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.1457, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.1458, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1458, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.552e-05/0.1458, allocations: 0 / 476.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001131/0.1459, allocations: 157.7 kB / 476.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.583e-05/0.1459, allocations: 18.52 kB / 476.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.146, allocations: 4.859 kB / 476.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.146, allocations: 96 / 476.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.146, allocations: 68.14 kB / 476.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.146, allocations: 0 / 476.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001467/0.1462, allocations: 67.39 kB / 476.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.1463, allocations: 85.17 kB / 476.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.524e-05/0.1463, allocations: 89.86 kB / 476.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.1463, allocations: 25.7 kB / 476.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.343e-05/0.1463, allocations: 80.14 kB / 476.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.1464, allocations: 3.938 kB / 476.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.1464, allocations: 13.72 kB / 476.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.1465, allocations: 310.8 kB / 477.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.1465, allocations: 4 kB / 477.3 MB, free: 7.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.1465, allocations: 8 kB / 477.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.177e-05/0.1466, allocations: 60.25 kB / 477.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1466, allocations: 4 kB / 477.3 MB, free: 7.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.85e-05/0.1467, allocations: 55.41 kB / 477.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.1467, allocations: 37.64 kB / 477.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1467, allocations: 0 / 477.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1467, allocations: 3.938 kB / 477.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1467, allocations: 0 / 477.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.1467, allocations: 0 / 477.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.323e-05/0.1468, allocations: 4.094 kB / 477.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1468, allocations: 7.984 kB / 477.4 MB, free: 7.16 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.705e-05/0.1468, allocations: 135.5 kB / 477.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-06/0.1469, allocations: 3.938 kB / 477.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.957e-06/0.1469, allocations: 7.078 kB / 477.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1469, allocations: 4 kB / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1469, allocations: 0 / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1469, allocations: 0 / 477.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.788e-05/0.147, allocations: 145.7 kB / 477.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.147, allocations: 4 kB / 477.7 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.147, allocations: 4 kB / 477.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.147, allocations: 3.938 kB / 477.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.147, allocations: 4 kB / 477.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.147, allocations: 0 / 477.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.147, allocations: 3.984 kB / 477.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.671e-05/0.1471, allocations: 94.77 kB / 477.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.891e-05/0.1471, allocations: 89.06 kB / 477.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.044e-05/0.1472, allocations: 0 / 477.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.955e-06/0.1472, allocations: 0 / 477.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.023e-05/0.1472, allocations: 3.984 kB / 477.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1472, allocations: 4 kB / 477.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.617e-05/0.1472, allocations: 75.28 kB / 478 MB, free: 6.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1472, allocations: 3.938 kB / 478 MB, free: 6.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.1475, allocations: 71.92 kB / 478.1 MB, free: 6.406 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.0007209/0.1482, allocations: 390.4 kB / 478.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.189e-05/0.1483, allocations: 63.39 kB / 478.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1483, allocations: 0 / 478.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.86e-05/0.1484, allocations: 55.41 kB / 478.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.1485, allocations: 4 kB / 478.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001465/0.1487, allocations: 88.91 kB / 478.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.1489, allocations: 0.6768 MB / 479.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.53e-06/0.1489, allocations: 0 / 479.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.318e-06/0.1489, allocations: 7.438 kB / 479.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1489, allocations: 4 kB / 479.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of Templates: time 0.004475/0.1534, allocations: 2.149 MB / 481.5 MB, free: 2.98 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches