Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0009677/0.0009675, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.275e-05/3.291e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09129/0.09134, allocations: 47.58 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3057/0.3971, allocations: 81.79 MB / 451.8 MB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.3974, allocations: 69.2 kB / 451.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05142/0.4488, allocations: 27.85 MB / 479.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4488, allocations: 0 / 479.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.4489, allocations: 4 kB / 479.7 MB, free: 1.242 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005891/0.4495, allocations: 0.6852 MB / 480.4 MB, free: 492 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.4495, allocations: 12.03 kB / 480.4 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.929e-05/0.4496, allocations: 39.53 kB / 480.5 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.4499, allocations: 277.3 kB / 480.7 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.45, allocations: 8 kB / 480.7 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.45, allocations: 8 kB / 480.8 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.4503, allocations: 169.6 kB / 480.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.4503, allocations: 0 / 480.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.4504, allocations: 7.938 kB / 480.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4504, allocations: 0 / 480.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.4505, allocations: 87.97 kB / 481 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000674/0.4512, allocations: 0.4925 MB / 481.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.4514, allocations: 118.5 kB / 481.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.4516, allocations: 108.9 kB / 481.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.4516, allocations: 0 / 481.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.4519, allocations: 246.6 kB / 482 MB, free: 14.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.4519, allocations: 0 / 482 MB, free: 14.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007032/0.4526, allocations: 0.4938 MB / 482.5 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/0.4527, allocations: 203.8 kB / 482.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005676/0.4533, allocations: 0.4911 MB / 483.2 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.4533, allocations: 33.7 kB / 483.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.4534, allocations: 117 kB / 483.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.983e-05/0.4534, allocations: 31.64 kB / 483.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.4535, allocations: 8 kB / 483.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4536, allocations: 326.8 kB / 483.7 MB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.4537, allocations: 79.97 kB / 483.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.4538, allocations: 79.98 kB / 483.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.454, allocations: 212.5 kB / 484 MB, free: 12.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.454, allocations: 0 / 484 MB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005756/0.4546, allocations: 489.9 kB / 484.5 MB, free: 12.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.256e-05/0.4547, allocations: 148.6 kB / 484.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4547, allocations: 4.016 kB / 484.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.4547, allocations: 0 / 484.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.128e-05/0.4548, allocations: 4.062 kB / 484.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.4548, allocations: 3.984 kB / 484.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.455, allocations: 31.84 kB / 484.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.4551, allocations: 97.3 kB / 484.8 MB, free: 11.78 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.000178/0.4553, allocations: 271.2 kB / 485 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/0.4553, allocations: 43.53 kB / 485.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.4554, allocations: 67.61 kB / 485.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4554, allocations: 0 / 485.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.4555, allocations: 0 / 485.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.4555, allocations: 3.938 kB / 485.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009909/0.4565, allocations: 0.9323 MB / 486.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4565, allocations: 0 / 486.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.071e-06/0.4565, allocations: 4 kB / 486.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4565, allocations: 4 kB / 486.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.4565, allocations: 19.98 kB / 486.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.4565, allocations: 0 / 486.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4566, allocations: 3.953 kB / 486.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006908/0.4572, allocations: 0.6284 MB / 486.8 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.4576, allocations: 268.2 kB / 487 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.133e-05/0.4577, allocations: 12 kB / 487 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.4578, allocations: 19.98 kB / 487 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.458, allocations: 55.92 kB / 487.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.4581, allocations: 109.1 kB / 487.2 MB, free: 9.152 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000464/0.4586, allocations: 416.9 kB / 487.6 MB, free: 8.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4586, allocations: 0 / 487.6 MB, free: 8.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002719/0.4589, allocations: 52 kB / 487.7 MB, free: 8.695 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.0001513/0.459, allocations: 115.3 kB / 487.8 MB, free: 8.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005614/0.4596, allocations: 0.5321 MB / 488.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.4596, allocations: 7.938 kB / 488.3 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.46, allocations: 457 kB / 488.8 MB, free: 7.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.4607, allocations: 155 kB / 488.9 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009377/0.4616, allocations: 0.6021 MB / 489.5 MB, free: 6.688 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.462, allocations: 0.8264 MB / 490.3 MB, free: 5.832 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.876e-05/0.4621, allocations: 12.55 kB / 490.4 MB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.063e-05/0.4621, allocations: 11.44 kB / 490.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4621, allocations: 0 / 490.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of Templates: time 0.008886/0.471, allocations: 6.601 MB / 497 MB, free: 15.03 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches