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.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 109.4 kB / 18.4 MB, free: 4.715 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.001048/0.001048, allocations: 192 kB / 19.33 MB, free: 3.789 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.319/1.319, allocations: 222.9 MB / 243 MB, free: 15.14 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.2031/0.2031, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.69 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1096, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00163/0.1112, allocations: 494.8 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.1131, allocations: 1.267 MB / 472.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.185e-05/0.1131, allocations: 4 kB / 472.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.1131, allocations: 0 / 472.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.1133, allocations: 3.938 kB / 472.5 MB, free: 11.91 MB / 350.1 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.0009285/0.1142, allocations: 239.3 kB / 472.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.677e-05/0.1143, allocations: 7.984 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.318e-05/0.1143, allocations: 4 kB / 472.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.1144, allocations: 7.984 kB / 472.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.614e-05/0.1144, allocations: 10.39 kB / 472.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.1144, allocations: 0 / 472.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.1173, allocations: 0.6808 MB / 473.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.1174, allocations: 7.922 kB / 473.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.798e-05/0.1174, allocations: 0 / 473.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002379/0.1176, allocations: 175.7 kB / 473.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1176, allocations: 0 / 473.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1176, allocations: 3.938 kB / 473.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1176, allocations: 0 / 473.6 MB, free: 10.91 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.0003487/0.118, allocations: 392.1 kB / 474 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.118, allocations: 8.031 kB / 474 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.1181, allocations: 0.9375 kB / 474 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1182, allocations: 168.4 kB / 474.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1182, allocations: 4.375 kB / 474.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.1182, allocations: 384 / 474.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.583e-05/0.1183, allocations: 33.77 kB / 474.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.1183, allocations: 0 / 474.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.1184, allocations: 4 kB / 474.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1184, allocations: 0 / 474.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.618e-05/0.1184, allocations: 0 / 474.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001254/0.1185, allocations: 157.7 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.919e-05/0.1186, allocations: 22.5 kB / 474.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.226e-05/0.1186, allocations: 4.859 kB / 474.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.1186, allocations: 4.062 kB / 474.4 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.1186, allocations: 64.2 kB / 474.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1187, allocations: 0 / 474.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001463/0.1188, allocations: 67.3 kB / 474.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.1189, allocations: 85.17 kB / 474.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.378e-05/0.1189, allocations: 97.86 kB / 474.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.1189, allocations: 25.7 kB / 474.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.119, allocations: 84.12 kB / 474.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.119, allocations: 4 kB / 474.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.119, allocations: 13.7 kB / 474.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.1191, allocations: 310.8 kB / 475.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.1191, allocations: 8.125 kB / 475.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.1192, allocations: 0 / 475.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.247e-05/0.1192, allocations: 64.27 kB / 475.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1192, allocations: 0 / 475.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.221e-05/0.1193, allocations: 71.27 kB / 475.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.1193, allocations: 29.7 kB / 475.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1193, allocations: 0 / 475.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1193, allocations: 4 kB / 475.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.1194, allocations: 0 / 475.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1194, allocations: 4.094 kB / 475.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.1194, allocations: 0 / 475.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.1194, allocations: 0 / 475.3 MB, free: 8.945 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 7.552e-05/0.1195, allocations: 139.5 kB / 475.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-06/0.1195, allocations: 3.938 kB / 475.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.219e-05/0.1195, allocations: 11.06 kB / 475.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1195, allocations: 3.938 kB / 475.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1195, allocations: 0 / 475.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1195, allocations: 7.938 kB / 475.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.227e-05/0.1196, allocations: 145.7 kB / 475.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1196, allocations: 0 / 475.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-06/0.1196, allocations: 7.922 kB / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1197, allocations: 0 / 475.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.1197, allocations: 8 kB / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1197, allocations: 0 / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1197, allocations: 0 / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.152e-05/0.1198, allocations: 98.8 kB / 475.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.793e-05/0.1198, allocations: 85.08 kB / 475.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.1198, allocations: 0 / 475.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-06/0.1198, allocations: 4 kB / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.1199, allocations: 0 / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1199, allocations: 0 / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.276e-05/0.1199, allocations: 79.28 kB / 475.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1199, allocations: 4 kB / 475.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002625/0.1202, allocations: 59.98 kB / 475.9 MB, free: 8.191 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.0005839/0.1208, allocations: 346.9 kB / 476.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.929e-05/0.1209, allocations: 59.39 kB / 476.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1209, allocations: 0 / 476.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.098e-05/0.1209, allocations: 55.41 kB / 476.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.121, allocations: 4 kB / 476.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.1212, allocations: 96.84 kB / 476.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.1214, allocations: 0.6768 MB / 477.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.552e-06/0.1214, allocations: 4 kB / 477.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.757e-06/0.1214, allocations: 7.438 kB / 477.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1214, allocations: 0 / 477.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of Templates: time 0.003862/0.1253, allocations: 1.583 MB / 478.7 MB, free: 5.371 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches