Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009479/0.0009478, allocations: 96.28 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009567/0.0009568, allocations: 177.8 kB / 16.57 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.4 MB / 222.7 MB, free: 5.902 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3284/0.3284, allocations: 43.54 MB / 314.5 MB, free: 8.637 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004725/0.0004725, allocations: 18.97 kB / 383.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 58.86 MB / 442.7 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0004502/0.1027, allocations: 212.5 kB / 442.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005356/0.1033, allocations: 291.5 kB / 443.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.298e-05/0.1033, allocations: 0 / 443.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.199e-05/0.1033, allocations: 0 / 443.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.168e-06/0.1033, allocations: 0 / 443.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1037, allocations: 71.8 kB / 443.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.149e-05/0.1037, allocations: 3.984 kB / 443.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.066e-05/0.1038, allocations: 4 kB / 443.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.504e-05/0.1038, allocations: 0 / 443.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.187e-05/0.1038, allocations: 0 / 443.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.781e-06/0.1038, allocations: 0 / 443.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1039, allocations: 79.92 kB / 443.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-06/0.104, allocations: 0 / 443.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.104, allocations: 25.7 kB / 443.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.1041, allocations: 55.84 kB / 443.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1041, allocations: 0 / 443.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1041, allocations: 4 kB / 443.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.1041, allocations: 0 / 443.5 MB, free: 12.39 MB / 382.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.0002993/0.1044, allocations: 361.1 kB / 443.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.1045, allocations: 11.97 kB / 443.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.258e-05/0.1045, allocations: 0 / 443.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.433e-05/0.1046, allocations: 167 kB / 444 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1046, allocations: 0 / 444 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.196e-06/0.1046, allocations: 4 kB / 444 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.218e-05/0.1047, allocations: 29.69 kB / 444 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.1047, allocations: 4 kB / 444 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.1047, allocations: 0 / 444 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1047, allocations: 4 kB / 444 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.501e-05/0.1048, allocations: 0 / 444 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.1049, allocations: 157.6 kB / 444.2 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.1049, allocations: 22.55 kB / 444.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.171e-06/0.1049, allocations: 0 / 444.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.105, allocations: 60.27 kB / 444.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.105, allocations: 0 / 444.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.1051, allocations: 75.34 kB / 444.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.1052, allocations: 77.11 kB / 444.4 MB, free: 11.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.115e-05/0.1052, allocations: 89.86 kB / 444.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.1053, allocations: 25.7 kB / 444.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.522e-05/0.1053, allocations: 84.14 kB / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.143e-05/0.1053, allocations: 0 / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.1053, allocations: 0 / 444.6 MB, free: 11.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1054, allocations: 318.9 kB / 444.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.1054, allocations: 7.922 kB / 444.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-06/0.1054, allocations: 0 / 444.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.422e-05/0.1055, allocations: 33.7 kB / 445 MB, free: 10.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1055, allocations: 0 / 445 MB, free: 10.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.949e-05/0.1055, allocations: 59.41 kB / 445 MB, free: 10.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.1056, allocations: 29.7 kB / 445.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.1056, allocations: 0 / 445.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1056, allocations: 8.078 kB / 445.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.1056, allocations: 0 / 445.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.1056, allocations: 0 / 445.1 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.399e-05/0.1056, allocations: 4 kB / 445.1 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.1057, allocations: 0 / 445.1 MB, free: 10.53 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.79e-05/0.1057, allocations: 139.5 kB / 445.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.665e-06/0.1058, allocations: 4 kB / 445.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.1058, allocations: 3.125 kB / 445.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1058, allocations: 0 / 445.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1058, allocations: 4 kB / 445.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1058, allocations: 0 / 445.2 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.867e-05/0.1059, allocations: 157.8 kB / 445.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1059, allocations: 7.938 kB / 445.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.1059, allocations: 0 / 445.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1059, allocations: 0 / 445.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.1059, allocations: 0 / 445.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1059, allocations: 7.922 kB / 445.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1059, allocations: 0 / 445.4 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.037e-05/0.106, allocations: 94.83 kB / 445.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.1061, allocations: 85.05 kB / 445.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.1061, allocations: 0 / 445.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.133e-05/0.1061, allocations: 4 kB / 445.6 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.1061, allocations: 0 / 445.6 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.1061, allocations: 0 / 445.6 MB, free: 9.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.155e-05/0.1061, allocations: 75.28 kB / 445.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1061, allocations: 0 / 445.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.1064, allocations: 35.98 kB / 445.7 MB, free: 9.816 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004579/0.1069, allocations: 266.8 kB / 445.9 MB, free: 9.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.086e-05/0.1069, allocations: 63.34 kB / 446 MB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.107, allocations: 0 / 446 MB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.698e-05/0.107, allocations: 55.41 kB / 446 MB, free: 9.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.266e-05/0.1071, allocations: 7.938 kB / 446.1 MB, free: 9.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001474/0.1072, allocations: 82.81 kB / 446.1 MB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.1075, allocations: 0.6731 MB / 446.8 MB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.1075, allocations: 0 / 446.8 MB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.306e-06/0.1075, allocations: 7.438 kB / 446.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1075, allocations: 0 / 446.8 MB, free: 8.602 MB / 382.1 MB Notification: Performance of Templates: time 0.003042/0.1106, allocations: 0.9172 MB / 447.7 MB, free: 7.684 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches