Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.001581/0.001581, allocations: 175.1 kB / 8.148 MB, free: 2.188 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.65/1.65, allocations: 205.2 MB / 213.8 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.001261/0.001261, allocations: 94.67 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.878e-06/9.819e-06, allocations: 4 kB / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2252, allocations: 47.55 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.3443, allocations: 78.2 MB / 440 MB, free: 7.867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.3447, allocations: 68.47 kB / 440.1 MB, free: 7.801 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.04073/0.3854, allocations: 8.544 MB / 448.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.64e-05/0.3855, allocations: 4 kB / 448.6 MB, free: 15.32 MB / 346.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.0009628/0.3865, allocations: 0.5706 MB / 449.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3865, allocations: 8.031 kB / 449.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.3867, allocations: 35.53 kB / 449.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008721/0.3875, allocations: 342.9 kB / 449.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.3876, allocations: 7.938 kB / 449.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.3876, allocations: 11.98 kB / 449.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002431/0.3879, allocations: 59.98 kB / 449.7 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.3882, allocations: 140.1 kB / 449.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.3883, allocations: 0 / 449.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.3883, allocations: 0 / 449.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.3883, allocations: 3.906 kB / 449.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.3894, allocations: 488.8 kB / 450.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.3898, allocations: 114.8 kB / 450.4 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.3899, allocations: 44.84 kB / 450.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.3899, allocations: 4 kB / 450.4 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.3902, allocations: 107 kB / 450.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.226e-06/0.3902, allocations: 0 / 450.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005385/0.3907, allocations: 145.2 kB / 450.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.606e-05/0.3908, allocations: 102.8 kB / 450.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000819/0.3917, allocations: 383.4 kB / 451.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.3917, allocations: 25.7 kB / 451.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.068e-05/0.3918, allocations: 166.5 kB / 451.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.3919, allocations: 39.45 kB / 451.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.392, allocations: 4 kB / 451.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3921, allocations: 318.8 kB / 451.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3922, allocations: 40 kB / 451.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.3924, allocations: 93.98 kB / 451.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.3926, allocations: 50.08 kB / 451.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3926, allocations: 0 / 451.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003983/0.393, allocations: 137.5 kB / 452 MB, free: 11.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3931, allocations: 4 kB / 452 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.3931, allocations: 4 kB / 452 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.3931, allocations: 0 / 452 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.3934, allocations: 23.98 kB / 452 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3934, allocations: 0 / 452 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.3936, allocations: 19.95 kB / 452.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.3936, allocations: 4 kB / 452.1 MB, free: 11.63 MB / 346.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 0.0001165/0.3937, allocations: 47.39 kB / 452.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3939, allocations: 35.55 kB / 452.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005196/0.3944, allocations: 164.4 kB / 452.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3944, allocations: 0 / 452.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3944, allocations: 4 kB / 452.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3944, allocations: 0 / 452.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004237/0.3949, allocations: 289.9 kB / 452.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3949, allocations: 0 / 452.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.395, allocations: 15.92 kB / 452.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.395, allocations: 4 kB / 452.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3951, allocations: 4 kB / 452.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3951, allocations: 0 / 452.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3951, allocations: 0 / 452.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004162/0.3955, allocations: 185.8 kB / 452.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.3957, allocations: 124.7 kB / 452.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/0.3958, allocations: 4 kB / 452.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.396, allocations: 7.984 kB / 452.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/0.3961, allocations: 15.98 kB / 452.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.3961, allocations: 4.047 kB / 453 MB, free: 10.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005897/0.3967, allocations: 303 kB / 453.2 MB, free: 10.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004434/0.3972, allocations: 60.19 kB / 453.3 MB, free: 10.31 MB / 346.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.0009494/0.3981, allocations: 329.8 kB / 453.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.3986, allocations: 119.8 kB / 453.7 MB, free: 9.906 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.3986, allocations: 4 kB / 453.8 MB, free: 9.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.3988, allocations: 63.92 kB / 453.8 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.3994, allocations: 64.98 kB / 453.9 MB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.4007, allocations: 421.6 kB / 454.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005852/0.4013, allocations: 0.8098 MB / 455.1 MB, free: 8.492 MB / 346.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4013, allocations: 4 kB / 455.1 MB, free: 8.488 MB / 346.7 MB Notification: Performance of Templates: time 0.01025/0.4116, allocations: 4.267 MB / 459.4 MB, free: 4.234 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches