Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008964/0.0008964, allocations: 183.1 kB / 7.8 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9877/0.9877, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007912/0.0007911, allocations: 79.48 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1475/0.1475, allocations: 43.49 MB / 352.8 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.811e-06/5.831e-06, allocations: 4 kB / 417.7 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2233, allocations: 58.84 MB / 476.5 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0964/0.3198, allocations: 83.74 MB / 0.5472 GB, free: 15.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001586/0.32, allocations: 59.97 kB / 0.5472 GB, free: 15.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003205/0.3232, allocations: 1.112 MB / 0.5483 GB, free: 13.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3232, allocations: 0 / 0.5483 GB, free: 13.96 MB / 394.7 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.0002079/0.3234, allocations: 360 kB / 0.5486 GB, free: 13.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.3235, allocations: 8.031 kB / 0.5487 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.3235, allocations: 3.984 kB / 0.5487 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.734e-05/0.3236, allocations: 159.1 kB / 0.5488 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.3236, allocations: 0 / 0.5488 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-06/0.3236, allocations: 0 / 0.5488 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.171e-05/0.3236, allocations: 4 kB / 0.5488 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.264e-05/0.3237, allocations: 25.7 kB / 0.5488 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-06/0.3237, allocations: 0 / 0.5488 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.3237, allocations: 7.906 kB / 0.5488 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.3237, allocations: 0 / 0.5488 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.897e-05/0.3238, allocations: 130.2 kB / 0.549 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.163e-05/0.3239, allocations: 24.95 kB / 0.549 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.156e-05/0.3239, allocations: 4.859 kB / 0.549 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-06/0.3239, allocations: 0 / 0.549 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.3239, allocations: 60.36 kB / 0.5491 GB, free: 13.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.3239, allocations: 4 kB / 0.5491 GB, free: 13.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001488/0.3241, allocations: 33.69 kB / 0.5491 GB, free: 12.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.3241, allocations: 77.11 kB / 0.5492 GB, free: 12.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.63e-05/0.3242, allocations: 85 kB / 0.5492 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.3242, allocations: 25.7 kB / 0.5493 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.896e-05/0.3242, allocations: 80.14 kB / 0.5493 GB, free: 12.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.3242, allocations: 11.91 kB / 0.5494 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.3242, allocations: 0 / 0.5494 GB, free: 12.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.3243, allocations: 314.9 kB / 0.5497 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.761e-06/0.3243, allocations: 0 / 0.5497 GB, free: 12.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.3243, allocations: 3.938 kB / 0.5497 GB, free: 12.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.957e-05/0.3244, allocations: 4 kB / 0.5497 GB, free: 12.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3244, allocations: 0 / 0.5497 GB, free: 12.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.004e-05/0.3244, allocations: 36.75 kB / 0.5497 GB, free: 12.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.3245, allocations: 8 kB / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.3245, allocations: 0 / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.3245, allocations: 0 / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3245, allocations: 4.094 kB / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.736e-06/0.3245, allocations: 0 / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.557e-06/0.3245, allocations: 0 / 0.5497 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.3245, allocations: 3.906 kB / 0.5497 GB, free: 12.3 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.25e-05/0.3246, allocations: 134.7 kB / 0.5498 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-06/0.3246, allocations: 3.984 kB / 0.5498 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.167e-06/0.3246, allocations: 3 kB / 0.5499 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3246, allocations: 0 / 0.5499 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3246, allocations: 0 / 0.5499 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.3247, allocations: 3.938 kB / 0.5499 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.543e-05/0.3247, allocations: 138.2 kB / 0.55 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3247, allocations: 0 / 0.55 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.493e-06/0.3247, allocations: 3.984 kB / 0.55 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3247, allocations: 0 / 0.55 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3248, allocations: 0 / 0.55 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3248, allocations: 7.938 kB / 0.55 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3248, allocations: 0 / 0.55 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.798e-05/0.3248, allocations: 65.03 kB / 0.5501 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.432e-05/0.3249, allocations: 81.11 kB / 0.5501 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.3249, allocations: 0 / 0.5501 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.624e-06/0.3249, allocations: 0 / 0.5501 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.3249, allocations: 4 kB / 0.5501 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.3249, allocations: 0 / 0.5501 GB, free: 11.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.286e-05/0.325, allocations: 75.28 kB / 0.5502 GB, free: 11.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001993/0.3252, allocations: 23.92 kB / 0.5502 GB, free: 11.67 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000284/0.3255, allocations: 196.2 kB / 0.5504 GB, free: 11.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.99e-05/0.3255, allocations: 33.64 kB / 0.5505 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3255, allocations: 4.062 kB / 0.5505 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.666e-05/0.3256, allocations: 33.69 kB / 0.5505 GB, free: 11.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.244e-05/0.3256, allocations: 0 / 0.5505 GB, free: 11.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001043/0.3257, allocations: 44.08 kB / 0.5505 GB, free: 11.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001993/0.3259, allocations: 0.688 MB / 0.5512 GB, free: 10.62 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.326, allocations: 0 / 0.5512 GB, free: 10.62 MB / 394.7 MB Notification: Performance of Templates: time 0.002198/0.3282, allocations: 0.5722 MB / 0.5518 GB, free: 10.05 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches