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.001247/0.001247, allocations: 106.9 kB / 17.03 MB, free: 5.66 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.001163/0.001163, allocations: 190.9 kB / 17.96 MB, free: 5.066 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.588/1.588, allocations: 205.1 MB / 223.8 MB, free: 12.23 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.2205/0.2205, allocations: 43.53 MB / 314.7 MB, free: 464 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.001354/0.001354, allocations: 68.14 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1289, allocations: 57.79 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002264/0.1312, allocations: 490.6 kB / 442.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006703/0.1319, allocations: 251.9 kB / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.728e-05/0.1319, allocations: 0 / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.132, allocations: 0 / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.55e-06/0.132, allocations: 0 / 442.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.1323, allocations: 55.77 kB / 442.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.551e-05/0.1324, allocations: 7.969 kB / 442.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.766e-05/0.1325, allocations: 8 kB / 442.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.654e-05/0.1325, allocations: 0 / 442.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.081e-05/0.1325, allocations: 0 / 442.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.1325, allocations: 0 / 442.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.1327, allocations: 63.95 kB / 442.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.1327, allocations: 0 / 442.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.1328, allocations: 4 kB / 442.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.1329, allocations: 59.86 kB / 442.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1329, allocations: 0 / 442.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1329, allocations: 0 / 442.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1329, allocations: 0 / 442.9 MB, free: 5.223 MB / 318.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.0002914/0.1332, allocations: 357.3 kB / 443.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1333, allocations: 15.89 kB / 443.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.1333, allocations: 4.844 kB / 443.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.621e-05/0.1334, allocations: 164.4 kB / 443.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1334, allocations: 384 / 443.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.1335, allocations: 384 / 443.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.98e-05/0.1336, allocations: 30.27 kB / 443.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1336, allocations: 4.125 kB / 443.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1336, allocations: 3.938 kB / 443.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1336, allocations: 4 kB / 443.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.178e-05/0.1336, allocations: 4 kB / 443.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.1338, allocations: 149.7 kB / 443.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.432e-05/0.1338, allocations: 14.67 kB / 443.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.698e-05/0.1338, allocations: 8.859 kB / 443.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.128e-06/0.1339, allocations: 0 / 443.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.1339, allocations: 60.27 kB / 443.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1339, allocations: 7.875 kB / 443.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001849/0.1341, allocations: 75.27 kB / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.1341, allocations: 77.11 kB / 443.8 MB, free: 4.055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.88e-05/0.1342, allocations: 89.86 kB / 443.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.1342, allocations: 29.7 kB / 444 MB, free: 3.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.663e-05/0.1342, allocations: 80.14 kB / 444 MB, free: 3.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.1343, allocations: 0 / 444 MB, free: 3.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.1343, allocations: 9.844 kB / 444 MB, free: 3.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.271e-05/0.1344, allocations: 322.8 kB / 444.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.1344, allocations: 0 / 444.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.095e-06/0.1344, allocations: 4 kB / 444.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.135e-05/0.1345, allocations: 68.19 kB / 444.4 MB, free: 3.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1345, allocations: 0 / 444.4 MB, free: 3.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.219e-05/0.1346, allocations: 59.41 kB / 444.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.1346, allocations: 30.95 kB / 444.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1346, allocations: 8.078 kB / 444.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1346, allocations: 3.938 kB / 444.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.1346, allocations: 0 / 444.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1347, allocations: 7.984 kB / 444.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.09e-05/0.1347, allocations: 3.938 kB / 444.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.1347, allocations: 4 kB / 444.5 MB, free: 3.281 MB / 318.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.016e-05/0.1348, allocations: 135.5 kB / 444.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.1348, allocations: 4 kB / 444.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.551e-05/0.1348, allocations: 7.062 kB / 444.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1348, allocations: 4 kB / 444.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1348, allocations: 0 / 444.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1349, allocations: 0 / 444.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.968e-05/0.1349, allocations: 149.7 kB / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1349, allocations: 0 / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.135, allocations: 0 / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.135, allocations: 0 / 444.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.135, allocations: 3.938 kB / 444.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.135, allocations: 3.938 kB / 444.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.135, allocations: 0 / 444.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.1351, allocations: 94.83 kB / 444.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.807e-05/0.1351, allocations: 77.11 kB / 445 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.1352, allocations: 7.875 kB / 445 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.449e-05/0.1352, allocations: 4 kB / 445 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.883e-05/0.1352, allocations: 0 / 445 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.1352, allocations: 4 kB / 445 MB, free: 2.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.664e-05/0.1353, allocations: 75.28 kB / 445.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1353, allocations: 0 / 445.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003479/0.1356, allocations: 31.95 kB / 445.1 MB, free: 2.582 MB / 318.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.0006049/0.1362, allocations: 262.5 kB / 445.4 MB, free: 2.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.1364, allocations: 59.34 kB / 445.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1364, allocations: 64 / 445.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.995e-05/0.1364, allocations: 63.39 kB / 445.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.1366, allocations: 0 / 445.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002045/0.1368, allocations: 81.02 kB / 445.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.137, allocations: 0.6729 MB / 446.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.612e-06/0.137, allocations: 0 / 446.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.045e-05/0.137, allocations: 7.438 kB / 446.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.137, allocations: 0 / 446.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of Templates: time 0.004433/0.1414, allocations: 0.7933 MB / 447.1 MB, free: 0.6289 MB / 318.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches