Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") [: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.002495/0.002495, allocations: 185.9 kB / 8.156 MB, free: 2.191 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.772/1.772, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.001762/0.001762, allocations: 90.52 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.588e-05/1.608e-05, allocations: 4 kB / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2649, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1369/0.4018, allocations: 81.06 MB / 442.9 MB, free: 4.961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.4022, allocations: 75.95 kB / 443 MB, free: 4.887 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.09439/0.4966, allocations: 27.06 MB / 470 MB, free: 10 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.4966, allocations: 8 kB / 470 MB, free: 9.992 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008928/0.4975, allocations: 0.6852 MB / 470.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.4976, allocations: 12.03 kB / 470.7 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.4977, allocations: 39.53 kB / 470.8 MB, free: 9.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.4982, allocations: 273.4 kB / 471 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.4983, allocations: 4 kB / 471 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.4983, allocations: 11.91 kB / 471 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000253/0.4986, allocations: 79.91 kB / 471.1 MB, free: 8.781 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.499, allocations: 163.9 kB / 471.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.499, allocations: 4 kB / 471.3 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.4991, allocations: 0 / 471.3 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.4991, allocations: 4 kB / 471.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.5003, allocations: 497 kB / 471.8 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.5006, allocations: 118.5 kB / 471.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.5009, allocations: 100.9 kB / 472 MB, free: 7.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.5009, allocations: 4 kB / 472 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.5013, allocations: 222.6 kB / 472.2 MB, free: 7.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.777e-06/0.5014, allocations: 0 / 472.2 MB, free: 7.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001037/0.5024, allocations: 253.1 kB / 472.5 MB, free: 7.359 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002237/0.5027, allocations: 199.9 kB / 472.7 MB, free: 7.121 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.5041, allocations: 484.8 kB / 473.1 MB, free: 6.637 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.172e-05/0.5042, allocations: 37.69 kB / 473.2 MB, free: 6.594 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.5043, allocations: 151.6 kB / 473.3 MB, free: 6.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.638e-05/0.5044, allocations: 31.7 kB / 473.3 MB, free: 6.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.5044, allocations: 4 kB / 473.4 MB, free: 6.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5046, allocations: 322.8 kB / 473.7 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.5048, allocations: 71.98 kB / 473.7 MB, free: 6.016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.505, allocations: 79.97 kB / 473.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.5052, allocations: 63.97 kB / 473.9 MB, free: 5.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5052, allocations: 0 / 473.9 MB, free: 5.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000605/0.5059, allocations: 221 kB / 474.1 MB, free: 5.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.5059, allocations: 8 kB / 474.1 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.5059, allocations: 0 / 474.1 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.5059, allocations: 4.656 kB / 474.1 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.433e-05/0.506, allocations: 3.938 kB / 474.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.506, allocations: 0 / 474.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.5062, allocations: 20 kB / 474.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001595/0.5064, allocations: 93.3 kB / 474.2 MB, free: 5.531 MB / 362.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: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * 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.0002845/0.5067, allocations: 199.8 kB / 474.4 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.5068, allocations: 44.84 kB / 474.5 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002286/0.5071, allocations: 67.58 kB / 474.5 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5071, allocations: 0 / 474.5 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5071, allocations: 0 / 474.5 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5071, allocations: 3.984 kB / 474.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.5083, allocations: 0.6432 MB / 475.2 MB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5083, allocations: 4 kB / 475.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.144e-06/0.5084, allocations: 0 / 475.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.5084, allocations: 0 / 475.2 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.685e-05/0.5085, allocations: 19.98 kB / 475.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.5085, allocations: 0 / 475.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5085, allocations: 0 / 475.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007233/0.5092, allocations: 378.8 kB / 475.6 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006357/0.5099, allocations: 272.2 kB / 475.8 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.51, allocations: 10.91 kB / 475.8 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/0.5103, allocations: 16.17 kB / 475.9 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.5106, allocations: 51.94 kB / 475.9 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/0.5107, allocations: 109.2 kB / 476 MB, free: 3.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0007884/0.5115, allocations: 394.9 kB / 476.4 MB, free: 3.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000393/0.5119, allocations: 44 kB / 476.4 MB, free: 3.191 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0002021/0.5122, allocations: 115.2 kB / 476.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.5129, allocations: 336.4 kB / 476.9 MB, free: 2.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5129, allocations: 0 / 476.9 MB, free: 2.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.5134, allocations: 316.5 kB / 477.2 MB, free: 2.371 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.5146, allocations: 151.7 kB / 477.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.5164, allocations: 0.6478 MB / 478 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007157/0.5172, allocations: 0.8372 MB / 478.8 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of SimCode: time 3.727e-06/0.5172, allocations: 0 / 478.8 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of Templates: time 0.009263/0.5265, allocations: 4.107 MB / 482.9 MB, free: 12.47 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches