Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") [: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.002321/0.00232, allocations: 178.9 kB / 8.151 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001214/0.001214, allocations: 93.42 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.925e-06/7.975e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2233, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3443, allocations: 74.89 MB / 436.7 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000445/0.3449, allocations: 63.97 kB / 436.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.007184/0.3521, allocations: 1.001 MB / 437.8 MB, free: 10.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.3521, allocations: 0 / 437.8 MB, free: 10.15 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006307/0.3528, allocations: 390.2 kB / 438.2 MB, free: 9.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3528, allocations: 8.031 kB / 438.2 MB, free: 9.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.3529, allocations: 7.906 kB / 438.2 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.3531, allocations: 163.1 kB / 438.3 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.3531, allocations: 3.391 kB / 438.3 MB, free: 9.512 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.3531, allocations: 8.469 kB / 438.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001589/0.3533, allocations: 28 kB / 438.4 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.3534, allocations: 63.2 kB / 438.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3535, allocations: 4 kB / 438.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3535, allocations: 0 / 438.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3535, allocations: 4 kB / 438.4 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.354, allocations: 287.4 kB / 438.7 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.3542, allocations: 50.61 kB / 438.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.454e-05/0.3543, allocations: 22.39 kB / 438.8 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.3543, allocations: 3.906 kB / 438.8 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.3543, allocations: 30.56 kB / 438.8 MB, free: 8.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.3543, allocations: 0 / 438.8 MB, free: 8.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002564/0.3546, allocations: 61.69 kB / 438.9 MB, free: 8.895 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.3546, allocations: 55.41 kB / 438.9 MB, free: 8.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.05e-05/0.3547, allocations: 104.5 kB / 439 MB, free: 8.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.3548, allocations: 25.7 kB / 439.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.398e-05/0.3549, allocations: 162.5 kB / 439.2 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.3549, allocations: 11.81 kB / 439.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.3549, allocations: 0 / 439.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3551, allocations: 314.8 kB / 439.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.36e-05/0.3551, allocations: 19.94 kB / 439.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-05/0.3552, allocations: 12 kB / 439.6 MB, free: 8.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.752e-05/0.3552, allocations: 8 kB / 439.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3553, allocations: 3.906 kB / 439.6 MB, free: 8.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001635/0.3554, allocations: 61.69 kB / 439.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3555, allocations: 8 kB / 439.7 MB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3555, allocations: 4 kB / 439.7 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3555, allocations: 0 / 439.7 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.3558, allocations: 28.72 kB / 439.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.3558, allocations: 0.6562 kB / 439.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005081/0.3563, allocations: 23.92 kB / 439.7 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3564, allocations: 4 kB / 439.7 MB, free: 8.027 MB / 330.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.848e-05/0.3564, allocations: 37.55 kB / 439.7 MB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-05/0.3565, allocations: 0 / 439.7 MB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.3569, allocations: 81.64 kB / 439.8 MB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.3569, allocations: 7.938 kB / 439.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3569, allocations: 2.625 kB / 439.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.357, allocations: 0 / 439.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/0.3574, allocations: 162.2 kB / 440 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3574, allocations: 0 / 440 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/0.3578, allocations: 31.97 kB / 440 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.878e-06/0.3578, allocations: 3.906 kB / 440 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.3579, allocations: 4 kB / 440 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3579, allocations: 0 / 440 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3579, allocations: 0 / 440 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003575/0.3583, allocations: 167.4 kB / 440.2 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.805e-05/0.3584, allocations: 85.02 kB / 440.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.3585, allocations: 0 / 440.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.3589, allocations: 19.97 kB / 440.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.359, allocations: 8 kB / 440.3 MB, free: 7.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.359, allocations: 6.422 kB / 440.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.603e-05/0.3591, allocations: 91.28 kB / 440.4 MB, free: 7.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006473/0.3598, allocations: 12 kB / 440.4 MB, free: 7.242 MB / 330.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0002467/0.3601, allocations: 99.19 kB / 440.5 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002703/0.3603, allocations: 39.92 kB / 440.6 MB, free: 7.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3604, allocations: 4 kB / 440.6 MB, free: 7.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3605, allocations: 20 kB / 440.6 MB, free: 7.066 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.361, allocations: 11.91 kB / 440.6 MB, free: 7.055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006419/0.3616, allocations: 127.9 kB / 440.7 MB, free: 6.898 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/0.3622, allocations: 0.7075 MB / 441.4 MB, free: 6.164 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3622, allocations: 0 / 441.4 MB, free: 6.164 MB / 330.7 MB Notification: Performance of Templates: time 0.00605/0.3683, allocations: 0.9497 MB / 442.4 MB, free: 5.227 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches