Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 109.5 kB / 16.41 MB, free: 6.492 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.001421/0.001421, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.635/1.635, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2155/0.2155, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 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.001361/0.001361, allocations: 72.45 kB / 441.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1358, allocations: 57.79 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001641/0.1375, allocations: 494.6 kB / 0.4883 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006118/0.1381, allocations: 250 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.1381, allocations: 4 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.1382, allocations: 0 / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.1382, allocations: 4 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.1385, allocations: 59.75 kB / 0.4886 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.634e-05/0.1386, allocations: 0 / 0.4886 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.776e-05/0.1386, allocations: 0 / 0.4886 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.069e-05/0.1386, allocations: 7.984 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.158e-05/0.1387, allocations: 0 / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.695e-06/0.1387, allocations: 0 / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.1388, allocations: 63.95 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.364e-06/0.1389, allocations: 0 / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.231e-05/0.1389, allocations: 3.938 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.139, allocations: 59.86 kB / 0.4888 GB, free: 10.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1391, allocations: 4 kB / 0.4888 GB, free: 10.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1391, allocations: 0 / 0.4888 GB, free: 10.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1391, allocations: 0 / 0.4888 GB, free: 10.92 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.0003491/0.1394, allocations: 357.1 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1395, allocations: 11.89 kB / 0.4891 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/0.1395, allocations: 8.891 kB / 0.4891 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.114e-05/0.1396, allocations: 164.4 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1396, allocations: 384 / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.1396, allocations: 384 / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.132e-05/0.1397, allocations: 38.2 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1397, allocations: 4.125 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1398, allocations: 3.938 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1398, allocations: 0 / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.602e-05/0.1398, allocations: 0 / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.1399, allocations: 153.7 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.57e-05/0.14, allocations: 14.58 kB / 0.4895 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.458e-05/0.14, allocations: 4.859 kB / 0.4895 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.14, allocations: 12.03 kB / 0.4895 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.1401, allocations: 56.27 kB / 0.4896 GB, free: 9.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1401, allocations: 0 / 0.4896 GB, free: 9.934 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001696/0.1402, allocations: 71.33 kB / 0.4896 GB, free: 9.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.1403, allocations: 77.11 kB / 0.4897 GB, free: 9.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.556e-05/0.1403, allocations: 89.86 kB / 0.4898 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.1404, allocations: 25.7 kB / 0.4898 GB, free: 9.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.1404, allocations: 84.27 kB / 0.4899 GB, free: 9.543 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.1404, allocations: 4 kB / 0.4899 GB, free: 9.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.1404, allocations: 13.72 kB / 0.4899 GB, free: 9.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.1405, allocations: 310.8 kB / 0.4902 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-06/0.1406, allocations: 0 / 0.4902 GB, free: 9.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.1406, allocations: 7.938 kB / 0.4902 GB, free: 9.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.294e-05/0.1406, allocations: 64.25 kB / 0.4903 GB, free: 9.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1406, allocations: 3.938 kB / 0.4903 GB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.688e-05/0.1407, allocations: 63.47 kB / 0.4903 GB, free: 9.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.1407, allocations: 33.7 kB / 0.4904 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1408, allocations: 0 / 0.4904 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1408, allocations: 7.922 kB / 0.4904 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-06/0.1408, allocations: 3.984 kB / 0.4904 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1408, allocations: 0 / 0.4904 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.1408, allocations: 0 / 0.4904 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.1408, allocations: 7.984 kB / 0.4904 GB, free: 8.984 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.142e-05/0.1409, allocations: 135.5 kB / 0.4905 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-06/0.1409, allocations: 4.031 kB / 0.4905 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.064e-05/0.1409, allocations: 11 kB / 0.4905 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1409, allocations: 4 kB / 0.4905 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.141, allocations: 0 / 0.4905 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.141, allocations: 0 / 0.4905 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.919e-05/0.141, allocations: 149.6 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1411, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1411, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.1411, allocations: 8 kB / 0.4907 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-06/0.1411, allocations: 3.938 kB / 0.4907 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1411, allocations: 4 kB / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1411, allocations: 0 / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.5e-05/0.1412, allocations: 90.83 kB / 0.4908 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.1412, allocations: 77.11 kB / 0.4909 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.1412, allocations: 7.938 kB / 0.4909 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.235e-06/0.1413, allocations: 0 / 0.4909 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.999e-06/0.1413, allocations: 0 / 0.4909 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.1413, allocations: 4 kB / 0.4909 GB, free: 8.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.441e-05/0.1413, allocations: 79.31 kB / 0.4909 GB, free: 8.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.292e-06/0.1413, allocations: 0 / 0.4909 GB, free: 8.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002156/0.1415, allocations: 27.86 kB / 0.491 GB, free: 8.277 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 (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.0004942/0.142, allocations: 263.3 kB / 0.4912 GB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.79e-05/0.1421, allocations: 63.41 kB / 0.4913 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1421, allocations: 0 / 0.4913 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.633e-05/0.1422, allocations: 55.39 kB / 0.4913 GB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1423, allocations: 7.938 kB / 0.4913 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001591/0.1425, allocations: 84.83 kB / 0.4914 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.1427, allocations: 0.669 MB / 0.4921 GB, free: 7.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.783e-06/0.1427, allocations: 3.984 kB / 0.4921 GB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.937e-06/0.1428, allocations: 7.438 kB / 0.4921 GB, free: 7.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1428, allocations: 4.125 kB / 0.4921 GB, free: 7.066 MB / 382.1 MB Notification: Performance of Templates: time 0.002958/0.1457, allocations: 0.8009 MB / 0.4929 GB, free: 6.266 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches