Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") [: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 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 185.2 kB / 8.135 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008531/0.0008531, allocations: 100.8 kB / 280.8 MB, free: 1.316 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.754e-06, allocations: 4 kB / 336.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.196, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08427/0.2803, allocations: 79.53 MB / 466.4 MB, free: 7.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.2805, allocations: 75.89 kB / 466.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02446/0.305, allocations: 8.755 MB / 475.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.872e-05/0.3051, allocations: 14.52 kB / 475.3 MB, free: 14.48 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007355/0.3058, allocations: 0.5682 MB / 475.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3058, allocations: 12.03 kB / 475.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.222e-05/0.3059, allocations: 35.52 kB / 475.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.3065, allocations: 331 kB / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3065, allocations: 4 kB / 476.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.364e-05/0.3066, allocations: 11.98 kB / 476.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001445/0.3067, allocations: 63.98 kB / 476.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.3069, allocations: 136 kB / 476.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3069, allocations: 0 / 476.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.307, allocations: 0 / 476.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.307, allocations: 0 / 476.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006775/0.3076, allocations: 492.8 kB / 476.9 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.3078, allocations: 114.8 kB / 477 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.603e-05/0.3079, allocations: 44.78 kB / 477.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.308, allocations: 8 kB / 477.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.3081, allocations: 99.31 kB / 477.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.843e-06/0.3081, allocations: 0 / 477.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002945/0.3084, allocations: 144.7 kB / 477.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.3085, allocations: 106.8 kB / 477.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.3089, allocations: 375.4 kB / 477.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.3089, allocations: 25.7 kB / 477.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.309, allocations: 128 kB / 477.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.3091, allocations: 43.45 kB / 478 MB, free: 11.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-06/0.3091, allocations: 0 / 478 MB, free: 11.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.3092, allocations: 339.8 kB / 478.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.569e-05/0.3093, allocations: 47.89 kB / 478.3 MB, free: 11.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.3094, allocations: 105.5 kB / 478.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.401e-05/0.3095, allocations: 39.98 kB / 478.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3095, allocations: 0 / 478.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002518/0.3098, allocations: 165.2 kB / 478.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3098, allocations: 4 kB / 478.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3098, allocations: 0 / 478.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3098, allocations: 4 kB / 478.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3099, allocations: 27.92 kB / 478.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.31, allocations: 8.062 kB / 478.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.3101, allocations: 22.14 kB / 478.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.3101, allocations: 4 kB / 478.7 MB, free: 10.78 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 8.077e-05/0.3102, allocations: 110.7 kB / 478.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.3102, allocations: 31.62 kB / 478.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.3105, allocations: 176.1 kB / 479 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3106, allocations: 8.031 kB / 479 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3106, allocations: 0 / 479 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3106, allocations: 3.906 kB / 479 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3108, allocations: 286 kB / 479.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3108, allocations: 0 / 479.3 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.152e-05/0.3109, allocations: 8 kB / 479.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3109, allocations: 0 / 479.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.3109, allocations: 7.984 kB / 479.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3109, allocations: 3.906 kB / 479.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3109, allocations: 0 / 479.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002524/0.3112, allocations: 191.4 kB / 479.5 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-05/0.3113, allocations: 120.7 kB / 479.6 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.3114, allocations: 3.984 kB / 479.6 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.3115, allocations: 8 kB / 479.7 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.3115, allocations: 15.97 kB / 479.7 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3116, allocations: 8 kB / 479.7 MB, free: 9.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003086/0.3119, allocations: 299.1 kB / 480 MB, free: 9.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003149/0.3122, allocations: 64.09 kB / 480 MB, free: 9.383 MB / 362.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007448/0.3129, allocations: 322.6 kB / 480.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002656/0.3132, allocations: 118.6 kB / 480.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3132, allocations: 0 / 480.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3134, allocations: 64.06 kB / 480.5 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.3137, allocations: 65.58 kB / 480.6 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006968/0.3144, allocations: 391.4 kB / 481 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.3148, allocations: 0.8177 MB / 481.8 MB, free: 7.664 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3148, allocations: 0 / 481.8 MB, free: 7.664 MB / 362.7 MB Notification: Performance of Templates: time 0.00704/0.3219, allocations: 3.492 MB / 485.3 MB, free: 4.199 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches