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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 176.9 kB / 8.349 MB, free: 0.6953 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.251/1.251, allocations: 221.5 MB / 230.3 MB, free: 3.312 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009098/0.0009099, allocations: 95.16 kB / 281.2 MB, free: 1.316 MB / 218.8 MB Notification: Performance of FrontEnd - loaded program: time 2.211e-05/2.213e-05, allocations: 4 kB / 337 MB, free: 9.418 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2395, allocations: 50.4 MB / 387.4 MB, free: 38.18 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09506/0.3346, allocations: 82.05 MB / 469.5 MB, free: 4.797 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.335, allocations: 71.91 kB / 469.6 MB, free: 4.727 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05409/0.3891, allocations: 28.01 MB / 497.6 MB, free: 8.871 MB / 378.8 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3891, allocations: 4 kB / 497.6 MB, free: 8.867 MB / 378.8 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.3892, allocations: 4 kB / 497.6 MB, free: 8.863 MB / 378.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.00073/0.3899, allocations: 0.6775 MB / 498.3 MB, free: 8.109 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.39, allocations: 8.031 kB / 498.3 MB, free: 8.102 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.028e-05/0.3901, allocations: 43.53 kB / 498.3 MB, free: 8.059 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3904, allocations: 271.5 kB / 498.6 MB, free: 7.75 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.3905, allocations: 8 kB / 498.6 MB, free: 7.742 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.3905, allocations: 11.95 kB / 498.6 MB, free: 7.73 MB / 378.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001627/0.3907, allocations: 79.97 kB / 498.7 MB, free: 7.652 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.391, allocations: 161.5 kB / 498.8 MB, free: 7.488 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.391, allocations: 0 / 498.8 MB, free: 7.488 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.905e-05/0.391, allocations: 4 kB / 498.8 MB, free: 7.484 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.391, allocations: 0 / 498.8 MB, free: 7.484 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.3917, allocations: 481 kB / 499.3 MB, free: 6.977 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.3919, allocations: 114.5 kB / 499.4 MB, free: 6.855 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.392, allocations: 100.9 kB / 499.5 MB, free: 6.754 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.3921, allocations: 0 / 499.5 MB, free: 6.754 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.3923, allocations: 240.4 kB / 499.8 MB, free: 6.496 MB / 378.8 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3924, allocations: 0 / 499.8 MB, free: 6.496 MB / 378.8 MB Notification: Performance of matching and sorting (n=14): time 0.0006339/0.393, allocations: 353.1 kB / 0.4884 GB, free: 6.145 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.3931, allocations: 195.9 kB / 0.4886 GB, free: 5.91 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005653/0.3937, allocations: 492.9 kB / 0.489 GB, free: 5.422 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.3937, allocations: 29.7 kB / 0.4891 GB, free: 5.387 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.583e-05/0.3938, allocations: 117.5 kB / 0.4892 GB, free: 5.266 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.3939, allocations: 31.59 kB / 0.4892 GB, free: 5.234 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.3939, allocations: 8 kB / 0.4892 GB, free: 5.227 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.394, allocations: 330.8 kB / 0.4895 GB, free: 4.895 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.3942, allocations: 75.98 kB / 0.4896 GB, free: 4.82 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.3943, allocations: 75.97 kB / 0.4897 GB, free: 4.746 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.516e-05/0.3944, allocations: 59.97 kB / 0.4897 GB, free: 4.688 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3944, allocations: 3.953 kB / 0.4897 GB, free: 4.684 MB / 378.8 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004694/0.3949, allocations: 327.8 kB / 0.49 GB, free: 4.359 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.395, allocations: 152.5 kB / 0.4902 GB, free: 4.18 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.395, allocations: 0 / 0.4902 GB, free: 4.18 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.395, allocations: 0 / 0.4902 GB, free: 4.18 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.095e-05/0.395, allocations: 3.938 kB / 0.4902 GB, free: 4.176 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.3951, allocations: 0 / 0.4902 GB, free: 4.176 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.3952, allocations: 23.97 kB / 0.4902 GB, free: 4.152 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.3954, allocations: 109.2 kB / 0.4903 GB, free: 4.047 MB / 378.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.0001991/0.3956, allocations: 267.2 kB / 0.4906 GB, free: 3.75 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.3956, allocations: 51.47 kB / 0.4906 GB, free: 3.699 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.3957, allocations: 63.77 kB / 0.4907 GB, free: 3.637 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3957, allocations: 4 kB / 0.4907 GB, free: 3.633 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3958, allocations: 0 / 0.4907 GB, free: 3.633 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3958, allocations: 0 / 0.4907 GB, free: 3.633 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008843/0.3967, allocations: 0.7525 MB / 0.4914 GB, free: 2.836 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3967, allocations: 0 / 0.4914 GB, free: 2.836 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-06/0.3967, allocations: 0 / 0.4914 GB, free: 2.836 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3967, allocations: 3.984 kB / 0.4914 GB, free: 2.832 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.3967, allocations: 23.98 kB / 0.4915 GB, free: 2.809 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3967, allocations: 0 / 0.4915 GB, free: 2.809 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3967, allocations: 128 / 0.4915 GB, free: 2.809 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005573/0.3973, allocations: 471.4 kB / 0.4919 GB, free: 2.332 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/0.3976, allocations: 264.3 kB / 0.4922 GB, free: 2.055 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/0.3977, allocations: 16 kB / 0.4922 GB, free: 2.039 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.3979, allocations: 11.98 kB / 0.4922 GB, free: 2.027 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.398, allocations: 59.92 kB / 0.4922 GB, free: 1.969 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-05/0.3981, allocations: 101.2 kB / 0.4923 GB, free: 1.867 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004308/0.3985, allocations: 398.6 kB / 0.4927 GB, free: 1.48 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3986, allocations: 0 / 0.4927 GB, free: 1.48 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0002844/0.3988, allocations: 48 kB / 0.4928 GB, free: 1.434 MB / 378.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.0001511/0.399, allocations: 123.2 kB / 0.4929 GB, free: 1.305 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0004699/0.3995, allocations: 0.5088 MB / 0.4934 GB, free: 0.7344 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3995, allocations: 0 / 0.4934 GB, free: 0.7344 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.3998, allocations: 449 kB / 0.4938 GB, free: 240 kB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000701/0.4005, allocations: 159 kB / 0.494 GB, free: 84 kB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1773/0.5778, allocations: 0.5988 MB / 0.4945 GB, free: 102.4 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.5781, allocations: 0.8294 MB / 0.4954 GB, free: 101.6 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 8.032e-05/0.5782, allocations: 12.28 kB / 0.4954 GB, free: 101.6 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.961e-05/0.5782, allocations: 12.03 kB / 0.4954 GB, free: 101.6 MB / 378.8 MB Notification: Performance of SimCode: time 9.22e-07/0.5782, allocations: 3.047 kB / 0.4954 GB, free: 101.6 MB / 378.8 MB Notification: Performance of Templates: time 0.007691/0.5859, allocations: 6.356 MB / 0.5016 GB, free: 101 MB / 378.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