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.001344/0.001344, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.12 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 78.98 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.111, allocations: 62.44 MB / 479.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001796/0.1128, allocations: 0.5489 MB / 480.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.1149, allocations: 1.283 MB / 481.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.684e-05/0.115, allocations: 0 / 481.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.284e-05/0.115, allocations: 0 / 481.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1152, allocations: 7.938 kB / 481.8 MB, free: 3.906 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.001038/0.1162, allocations: 187.6 kB / 481.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.622e-05/0.1163, allocations: 4 kB / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.698e-05/0.1163, allocations: 3.984 kB / 482 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.882e-05/0.1163, allocations: 0 / 482 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.873e-05/0.1164, allocations: 15.98 kB / 482 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.1164, allocations: 3.938 kB / 482 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003057/0.1195, allocations: 0.6078 MB / 482.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.1195, allocations: 4 kB / 482.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.063e-05/0.1196, allocations: 3.938 kB / 482.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.1198, allocations: 123.8 kB / 482.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1198, allocations: 0 / 482.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1198, allocations: 0 / 482.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1198, allocations: 0 / 482.7 MB, free: 3.059 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.0004621/0.1203, allocations: 389.5 kB / 483.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.1204, allocations: 12.88 kB / 483.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/0.1204, allocations: 0.9375 kB / 483.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.1206, allocations: 160.4 kB / 483.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1206, allocations: 4.375 kB / 483.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.1206, allocations: 4.375 kB / 483.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.1207, allocations: 33.77 kB / 483.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1208, allocations: 3.984 kB / 483.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.1208, allocations: 0 / 483.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1208, allocations: 4 kB / 483.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.39e-05/0.1208, allocations: 3.984 kB / 483.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.121, allocations: 145.7 kB / 483.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.524e-05/0.1211, allocations: 22.61 kB / 483.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.12e-05/0.1211, allocations: 4.859 kB / 483.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.1211, allocations: 0 / 483.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.33e-05/0.1212, allocations: 72.2 kB / 483.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1212, allocations: 0 / 483.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.1214, allocations: 67.3 kB / 483.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.1215, allocations: 81.17 kB / 483.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.1215, allocations: 105.8 kB / 483.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1216, allocations: 25.7 kB / 483.8 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.1216, allocations: 80.14 kB / 483.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.1216, allocations: 0 / 483.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.1217, allocations: 13.72 kB / 483.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1218, allocations: 314.8 kB / 484.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.316e-05/0.1218, allocations: 4 kB / 484.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.408e-06/0.1218, allocations: 8.062 kB / 484.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.1219, allocations: 64.27 kB / 484.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1219, allocations: 0 / 484.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.824e-05/0.122, allocations: 67.33 kB / 484.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.122, allocations: 29.7 kB / 484.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.122, allocations: 0 / 484.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.122, allocations: 0 / 484.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.122, allocations: 4 kB / 484.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.122, allocations: 0 / 484.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.1221, allocations: 4.094 kB / 484.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.1221, allocations: 0 / 484.4 MB, free: 1.094 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 9.712e-05/0.1222, allocations: 139.5 kB / 484.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.1222, allocations: 7.938 kB / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.313e-05/0.1222, allocations: 3.125 kB / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1222, allocations: 3.938 kB / 484.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1222, allocations: 4 kB / 484.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1222, allocations: 0 / 484.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.1223, allocations: 149.7 kB / 484.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1224, allocations: 4 kB / 484.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.174e-06/0.1224, allocations: 3.938 kB / 484.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1224, allocations: 0 / 484.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.1224, allocations: 4 kB / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1224, allocations: 0 / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1224, allocations: 0 / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.1225, allocations: 90.83 kB / 484.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1226, allocations: 81.05 kB / 484.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1226, allocations: 4.031 kB / 484.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.1226, allocations: 0 / 484.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.1226, allocations: 4 kB / 484.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.1226, allocations: 0 / 484.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.582e-05/0.1227, allocations: 79.28 kB / 485 MB, free: 432 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1227, allocations: 0 / 485 MB, free: 432 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.123, allocations: 59.98 kB / 485 MB, free: 372 kB / 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.000693/0.1237, allocations: 350.8 kB / 485.4 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.1238, allocations: 63.39 kB / 485.4 MB, free: 16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1238, allocations: 0 / 485.4 MB, free: 16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.41e-05/0.1239, allocations: 55.41 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.124, allocations: 3.938 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002011/0.1242, allocations: 116.3 kB / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.1245, allocations: 0.6772 MB / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.1245, allocations: 7.438 kB / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1245, allocations: 0 / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of Templates: time 0.00371/0.1282, allocations: 1.669 MB / 488 MB, free: 13.4 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