Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 175 kB / 8.131 MB, free: 0.875 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 221.4 MB / 229.9 MB, free: 13.54 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 104.7 kB / 280.8 MB, free: 10.48 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 8.436e-06/8.566e-06, allocations: 4 kB / 336.5 MB, free: 2.785 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08683, allocations: 50.42 MB / 386.9 MB, free: 320 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2356/0.3225, allocations: 81.96 MB / 468.9 MB, free: 15.77 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3228, allocations: 66.75 kB / 469 MB, free: 15.71 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.05457/0.3774, allocations: 27.41 MB / 496.4 MB, free: 4.734 MB / 370.8 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.3774, allocations: 4 kB / 496.4 MB, free: 4.73 MB / 370.8 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.0005378/0.378, allocations: 0.6832 MB / 497.1 MB, free: 3.984 MB / 370.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.378, allocations: 9.25 kB / 497.1 MB, free: 3.977 MB / 370.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.685e-05/0.3781, allocations: 43.53 kB / 497.1 MB, free: 3.934 MB / 370.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.3784, allocations: 277.3 kB / 497.4 MB, free: 3.625 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.3785, allocations: 4 kB / 497.4 MB, free: 3.621 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.845e-05/0.3785, allocations: 15.91 kB / 497.4 MB, free: 3.605 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001572/0.3787, allocations: 75.98 kB / 497.5 MB, free: 3.531 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.3789, allocations: 161.5 kB / 497.6 MB, free: 3.367 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3789, allocations: 3.938 kB / 497.6 MB, free: 3.363 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.379, allocations: 4 kB / 497.6 MB, free: 3.359 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.379, allocations: 4 kB / 497.6 MB, free: 3.355 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000733/0.3797, allocations: 494.8 kB / 498.1 MB, free: 2.859 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.3799, allocations: 118.5 kB / 498.2 MB, free: 2.734 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.3801, allocations: 101.6 kB / 498.3 MB, free: 2.633 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-06/0.3801, allocations: 0 / 498.3 MB, free: 2.633 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.3804, allocations: 222.6 kB / 498.6 MB, free: 2.391 MB / 370.8 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.3804, allocations: 0 / 498.6 MB, free: 2.391 MB / 370.8 MB Notification: Performance of matching and sorting (n=14): time 0.0004229/0.3808, allocations: 257.1 kB / 498.8 MB, free: 2.133 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.3809, allocations: 191.9 kB / 499 MB, free: 1.902 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005344/0.3814, allocations: 482.6 kB / 499.5 MB, free: 1.449 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.3815, allocations: 33.7 kB / 499.5 MB, free: 1.41 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.3815, allocations: 98.09 kB / 499.6 MB, free: 1.312 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.3816, allocations: 23.72 kB / 499.6 MB, free: 1.289 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.3816, allocations: 4 kB / 499.6 MB, free: 1.285 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.3817, allocations: 334.7 kB / 500 MB, free: 0.9492 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.3818, allocations: 75.98 kB / 0.4883 GB, free: 0.875 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.382, allocations: 79.97 kB / 0.4884 GB, free: 0.7969 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.3821, allocations: 59.34 kB / 0.4884 GB, free: 0.7422 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3821, allocations: 0 / 0.4884 GB, free: 0.7422 MB / 370.8 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003565/0.3824, allocations: 237.4 kB / 0.4887 GB, free: 0.5039 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.3825, allocations: 4 kB / 0.4887 GB, free: 0.5 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.3825, allocations: 0 / 0.4887 GB, free: 0.5 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3825, allocations: 4.656 kB / 0.4887 GB, free: 0.4961 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.454e-05/0.3825, allocations: 0 / 0.4887 GB, free: 0.4961 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.3825, allocations: 0 / 0.4887 GB, free: 0.4961 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.3827, allocations: 23.98 kB / 0.4887 GB, free: 484 kB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.906e-05/0.3828, allocations: 97.5 kB / 0.4888 GB, free: 388 kB / 370.8 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.0001732/0.383, allocations: 267.2 kB / 0.489 GB, free: 84 kB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.383, allocations: 47.44 kB / 0.4891 GB, free: 36 kB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.3832, allocations: 72.44 kB / 0.4892 GB, free: 15.96 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3832, allocations: 0 / 0.4892 GB, free: 15.96 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3832, allocations: 0 / 0.4892 GB, free: 15.96 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3832, allocations: 3.984 kB / 0.4892 GB, free: 15.96 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007214/0.3839, allocations: 0.6471 MB / 0.4898 GB, free: 15.27 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3839, allocations: 0 / 0.4898 GB, free: 15.27 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-06/0.3839, allocations: 4 kB / 0.4898 GB, free: 15.27 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.384, allocations: 0 / 0.4898 GB, free: 15.27 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.217e-05/0.384, allocations: 23.98 kB / 0.4898 GB, free: 15.24 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.384, allocations: 0 / 0.4898 GB, free: 15.24 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.384, allocations: 0 / 0.4898 GB, free: 15.24 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004355/0.3845, allocations: 376.2 kB / 0.4902 GB, free: 14.86 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.3848, allocations: 260.4 kB / 0.4904 GB, free: 14.59 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.271e-05/0.3849, allocations: 12 kB / 0.4904 GB, free: 14.57 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3851, allocations: 23.86 kB / 0.4905 GB, free: 14.55 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.3852, allocations: 55.84 kB / 0.4905 GB, free: 14.5 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.3854, allocations: 97.23 kB / 0.4906 GB, free: 14.4 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.0004274/0.3858, allocations: 394.9 kB / 0.491 GB, free: 14.02 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.0002855/0.3861, allocations: 40 kB / 0.491 GB, free: 13.98 MB / 386.8 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.0001344/0.3862, allocations: 127.2 kB / 0.4911 GB, free: 13.84 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.0003803/0.3866, allocations: 332.5 kB / 0.4915 GB, free: 13.49 MB / 386.8 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3866, allocations: 0.9375 kB / 0.4915 GB, free: 13.49 MB / 386.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.3869, allocations: 320.4 kB / 0.4918 GB, free: 13.14 MB / 386.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/0.3876, allocations: 153.9 kB / 0.4919 GB, free: 13 MB / 386.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009754/0.3885, allocations: 0.5992 MB / 0.4925 GB, free: 12.37 MB / 386.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/0.389, allocations: 0.8333 MB / 0.4933 GB, free: 11.51 MB / 386.8 MB Notification: Performance of SimCode: time 2.41e-07/0.389, allocations: 5.594 kB / 0.4933 GB, free: 11.5 MB / 386.8 MB Notification: Performance of Templates: time 0.009365/0.3984, allocations: 6.277 MB / 0.4995 GB, free: 5.117 MB / 386.8 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches