Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.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.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer") [: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.001001/0.001001, allocations: 179.5 kB / 8.479 MB, free: 1.891 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.246/1.246, allocations: 205.2 MB / 214.1 MB, free: 5.172 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009077/0.0009076, allocations: 94.22 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.456e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07542/0.07545, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2258/0.3013, allocations: 82.43 MB / 445 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001834/0.3015, allocations: 74.09 kB / 445 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0915/0.393, allocations: 54.13 MB / 499.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.134e-05/0.3931, allocations: 12 kB / 499.2 MB, free: 11.44 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001207/0.3943, allocations: 0.9775 MB / 0.4884 GB, free: 10.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3944, allocations: 12.03 kB / 0.4885 GB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.3946, allocations: 79.16 kB / 0.4885 GB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007179/0.3953, allocations: 468.3 kB / 0.489 GB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.3953, allocations: 23.91 kB / 0.489 GB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.3955, allocations: 40 kB / 0.489 GB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001049/0.3965, allocations: 0.5959 MB / 0.4896 GB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3978, allocations: 0.7494 MB / 0.4904 GB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3978, allocations: 0 / 0.4904 GB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.3979, allocations: 4 kB / 0.4904 GB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3979, allocations: 12 kB / 0.4904 GB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.4007, allocations: 1.595 MB / 0.4919 GB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008157/0.4015, allocations: 0.5109 MB / 0.4924 GB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004178/0.402, allocations: 278.2 kB / 0.4927 GB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/0.4021, allocations: 8.5 kB / 0.4927 GB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007052/0.4028, allocations: 0.5281 MB / 0.4932 GB, free: 5.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=58): time 1.904e-06/0.4028, allocations: 0 / 0.4932 GB, free: 5.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.00136/0.4042, allocations: 0.7654 MB / 0.494 GB, free: 4.645 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/0.4043, allocations: 208 kB / 0.4942 GB, free: 4.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.4046, allocations: 345.5 kB / 0.4945 GB, free: 4.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.4047, allocations: 45.7 kB / 0.4945 GB, free: 4.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.4048, allocations: 196.9 kB / 0.4947 GB, free: 3.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.405, allocations: 118.5 kB / 0.4948 GB, free: 3.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-05/0.4051, allocations: 4 kB / 0.4948 GB, free: 3.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4053, allocations: 362.7 kB / 0.4952 GB, free: 3.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.4057, allocations: 277.2 kB / 0.4954 GB, free: 3.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.4062, allocations: 351.1 kB / 0.4958 GB, free: 2.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.4067, allocations: 307.5 kB / 0.4961 GB, free: 2.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4067, allocations: 0 / 0.4961 GB, free: 2.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001424/0.4082, allocations: 0.8716 MB / 0.4969 GB, free: 1.508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4082, allocations: 4 kB / 0.4969 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.4082, allocations: 4 kB / 0.4969 GB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4082, allocations: 8.062 kB / 0.4969 GB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.4085, allocations: 103.8 kB / 0.497 GB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.4085, allocations: 8 kB / 0.4971 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.409, allocations: 75.62 kB / 0.4971 GB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005685/0.4096, allocations: 0.5619 MB / 0.4977 GB, free: 0.7461 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 5 * 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.0003947/0.41, allocations: 305.3 kB / 0.498 GB, free: 420 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.4101, allocations: 51.34 kB / 0.498 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.32e-05/0.4102, allocations: 44.77 kB / 0.4981 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.4102, allocations: 12 kB / 0.4981 GB, free: 312 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4102, allocations: 0 / 0.4981 GB, free: 312 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.4103, allocations: 3.984 kB / 0.4981 GB, free: 308 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008003/0.4111, allocations: 0.5769 MB / 0.4986 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4111, allocations: 0 / 0.4986 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.4113, allocations: 99.81 kB / 0.4987 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.4113, allocations: 7.875 kB / 0.4987 GB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/0.4115, allocations: 91.94 kB / 0.4988 GB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.4115, allocations: 3.906 kB / 0.4988 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4115, allocations: 0 / 0.4988 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001301/0.4128, allocations: 0.8141 MB / 0.4996 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004141/0.4132, allocations: 256.5 kB / 0.4999 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.4134, allocations: 20 kB / 0.4999 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.4138, allocations: 59.8 kB / 0.4999 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/0.4141, allocations: 152.2 kB / 0.5001 GB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005292/0.4147, allocations: 0.5658 MB / 0.5006 GB, free: 13.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002209/0.4149, allocations: 236.6 kB / 0.5009 GB, free: 13.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005219/0.4154, allocations: 120 kB / 0.501 GB, free: 13.26 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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 1 * 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.0002674/0.4157, allocations: 164.8 kB / 0.5011 GB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.417, allocations: 0.8397 MB / 0.502 GB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.417, allocations: 0 / 0.502 GB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007157/0.4177, allocations: 0.5412 MB / 0.5025 GB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.4195, allocations: 452.8 kB / 0.5029 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.4215, allocations: 0.8734 MB / 0.5038 GB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003463/0.425, allocations: 2.191 MB / 0.5059 GB, free: 8.086 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.425, allocations: 0 / 0.5059 GB, free: 8.086 MB / 362.7 MB Notification: Performance of Templates: time 0.0299/0.4549, allocations: 25.06 MB / 0.5304 GB, free: 14.12 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/Multiplexer/Multiplexer.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches