Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007599/0.0007599, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008935/0.0008936, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2015/0.2015, allocations: 46.18 MB / 345.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002745, allocations: 8 kB / 420.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 63.55 MB / 483.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006338/0.1159, allocations: 218.9 kB / 483.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002063/0.118, allocations: 1.267 MB / 485.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.399e-05/0.118, allocations: 0 / 485.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.653e-05/0.118, allocations: 0 / 485.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1182, allocations: 0 / 485.2 MB, free: 2.707 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487: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.001068/0.1193, allocations: 210.2 kB / 485.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.174e-05/0.1193, allocations: 0 / 485.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.495e-05/0.1194, allocations: 0 / 485.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.952e-05/0.1194, allocations: 4 kB / 485.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.43e-05/0.1195, allocations: 11.98 kB / 485.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-06/0.1195, allocations: 0 / 485.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003066/0.1225, allocations: 0.6027 MB / 486 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.1226, allocations: 3.984 kB / 486 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.1226, allocations: 33.64 kB / 486.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.1229, allocations: 119.8 kB / 486.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1229, allocations: 4 kB / 486.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1229, allocations: 0 / 486.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1229, allocations: 0 / 486.2 MB, free: 1.82 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.0004168/0.1233, allocations: 389.4 kB / 486.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1234, allocations: 12.88 kB / 486.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.849e-05/0.1234, allocations: 4.938 kB / 486.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.1235, allocations: 160.4 kB / 486.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1236, allocations: 4.375 kB / 486.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.1236, allocations: 4.375 kB / 486.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.425e-05/0.1237, allocations: 29.83 kB / 486.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.1237, allocations: 0 / 486.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1237, allocations: 3.984 kB / 486.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1237, allocations: 0 / 486.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.581e-05/0.1237, allocations: 4 kB / 486.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001274/0.1239, allocations: 145.7 kB / 486.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.141e-05/0.1239, allocations: 26.55 kB / 486.9 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.1239, allocations: 4.859 kB / 487 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.1239, allocations: 0 / 487 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.124, allocations: 68.25 kB / 487 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.124, allocations: 0 / 487 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001768/0.1242, allocations: 63.41 kB / 487.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.1242, allocations: 81.05 kB / 487.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.267e-05/0.1243, allocations: 102 kB / 487.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.1243, allocations: 25.7 kB / 487.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.888e-05/0.1244, allocations: 80.14 kB / 487.4 MB, free: 424 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.1244, allocations: 7.906 kB / 487.4 MB, free: 416 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.1244, allocations: 9.719 kB / 487.4 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1245, allocations: 314.8 kB / 487.7 MB, free: 76 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.777e-06/0.1245, allocations: 3.938 kB / 487.7 MB, free: 72 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.182e-06/0.1245, allocations: 0 / 487.7 MB, free: 72 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.859e-05/0.1246, allocations: 64.45 kB / 487.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1246, allocations: 0 / 487.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.931e-05/0.1247, allocations: 75.27 kB / 487.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.044e-05/0.1248, allocations: 33.7 kB / 487.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1248, allocations: 3.938 kB / 487.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.1248, allocations: 0 / 487.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1248, allocations: 0 / 487.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1248, allocations: 0 / 487.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.1248, allocations: 0 / 487.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.1248, allocations: 8.031 kB / 487.9 MB, free: 15.86 MB / 366.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.817e-05/0.1249, allocations: 135.5 kB / 488 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.1249, allocations: 3.938 kB / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.125, allocations: 7.125 kB / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.125, allocations: 0 / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.125, allocations: 0 / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.125, allocations: 3.984 kB / 488 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.608e-05/0.1251, allocations: 153.7 kB / 488.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1251, allocations: 4 kB / 488.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.715e-06/0.1251, allocations: 7.938 kB / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1251, allocations: 0 / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.1251, allocations: 0 / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1251, allocations: 0 / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1251, allocations: 0 / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.1252, allocations: 94.77 kB / 488.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.1253, allocations: 81.05 kB / 488.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.1253, allocations: 4 kB / 488.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.019e-05/0.1253, allocations: 4.031 kB / 488.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.21e-05/0.1253, allocations: 0 / 488.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1253, allocations: 4 kB / 488.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.622e-05/0.1254, allocations: 83.27 kB / 488.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1254, allocations: 0 / 488.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.1257, allocations: 60 kB / 488.5 MB, free: 15.12 MB / 366.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.0006514/0.1263, allocations: 334.6 kB / 488.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.271e-05/0.1264, allocations: 63.39 kB / 488.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1264, allocations: 0 / 488.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.83e-05/0.1265, allocations: 55.41 kB / 488.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.1266, allocations: 7.938 kB / 489 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000196/0.1268, allocations: 108.3 kB / 489.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.127, allocations: 0.6731 MB / 489.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.127, allocations: 11.56 kB / 489.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.127, allocations: 0 / 489.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of Templates: time 0.003475/0.1305, allocations: 1.675 MB / 491.4 MB, free: 12.17 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches