Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001174, allocations: 61.28 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09614, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002627/0.0988, allocations: 1.564 MB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1006, allocations: 0.8942 MB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.382e-05/0.1007, allocations: 0 / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.573e-05/0.1008, allocations: 19.86 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.579e-05/0.1009, allocations: 27.78 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.1012, allocations: 51.88 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.1014, allocations: 171.7 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.1015, allocations: 21.39 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005766/0.1021, allocations: 0.6239 MB / 362.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1023, allocations: 83.64 kB / 362.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.52e-05/0.1023, allocations: 8 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.736e-05/0.1024, allocations: 12 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1025, allocations: 75.73 kB / 362.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.1026, allocations: 135 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.103, allocations: 458.4 kB / 363 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.103, allocations: 4 kB / 363 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.103, allocations: 0 / 363 MB, free: 9.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.103, allocations: 0 / 363 MB, free: 9.16 MB / 302.1 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.000816/0.1038, allocations: 0.806 MB / 363.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.1039, allocations: 8.031 kB / 363.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.959e-05/0.104, allocations: 44.47 kB / 363.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.1043, allocations: 298.1 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1043, allocations: 8.375 kB / 364.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.1044, allocations: 12.38 kB / 364.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.1047, allocations: 173.9 kB / 364.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1047, allocations: 0 / 364.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.1048, allocations: 11.98 kB / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1048, allocations: 0 / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.1049, allocations: 91.88 kB / 364.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007502/0.1057, allocations: 0.4926 MB / 365 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.1059, allocations: 134.4 kB / 365.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.1061, allocations: 108.9 kB / 365.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.1061, allocations: 0 / 365.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004003/0.1065, allocations: 250.6 kB / 365.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.913e-06/0.1065, allocations: 0 / 365.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001028/0.1076, allocations: 0.6105 MB / 366.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.1077, allocations: 195.9 kB / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006109/0.1083, allocations: 0.5678 MB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.1083, allocations: 33.7 kB / 366.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.1084, allocations: 109.1 kB / 367 MB, free: 4.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.1085, allocations: 35.59 kB / 367 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.1086, allocations: 97.41 kB / 367.1 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1087, allocations: 334.8 kB / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.1089, allocations: 83.89 kB / 367.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.109, allocations: 101.7 kB / 367.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.1094, allocations: 438.1 kB / 368 MB, free: 3.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1094, allocations: 0 / 368 MB, free: 3.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006181/0.1101, allocations: 0.4979 MB / 368.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.1101, allocations: 148.5 kB / 368.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1102, allocations: 0 / 368.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1102, allocations: 4 kB / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.901e-05/0.1102, allocations: 3.984 kB / 368.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1102, allocations: 4.031 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.1104, allocations: 16 kB / 368.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.1105, allocations: 97.34 kB / 368.8 MB, free: 2.941 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003229/0.1108, allocations: 404 kB / 369.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.1109, allocations: 43.53 kB / 369.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-05/0.111, allocations: 79.34 kB / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.111, allocations: 0 / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.111, allocations: 0 / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.111, allocations: 0 / 369.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.112, allocations: 0.971 MB / 370.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.112, allocations: 0 / 370.3 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-06/0.112, allocations: 4 kB / 370.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.112, allocations: 0 / 370.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.1121, allocations: 19.98 kB / 370.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1121, allocations: 0 / 370.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1121, allocations: 3.938 kB / 370.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007152/0.1128, allocations: 0.6634 MB / 371 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.1132, allocations: 260.5 kB / 371.2 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.43e-05/0.1132, allocations: 16 kB / 371.2 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1134, allocations: 11.98 kB / 371.2 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.1135, allocations: 59.88 kB / 371.3 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.275e-05/0.1136, allocations: 105.2 kB / 371.4 MB, free: 120 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.136/0.2496, allocations: 413.2 kB / 371.8 MB, free: 20.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2497, allocations: 0 / 371.8 MB, free: 20.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004547/0.2501, allocations: 52.12 kB / 371.9 MB, free: 20.51 MB / 302.1 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.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,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001292/0.2503, allocations: 116.5 kB / 372 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.2508, allocations: 0.5332 MB / 372.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2509, allocations: 1.062 kB / 372.5 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.2512, allocations: 461.2 kB / 373 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007675/0.252, allocations: 195.1 kB / 373.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2533, allocations: 0.7541 MB / 373.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.2537, allocations: 0.8202 MB / 374.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.843e-05/0.2538, allocations: 16.53 kB / 374.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.2538, allocations: 17.66 kB / 374.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2539, allocations: 0 / 374.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01188/0.2657, allocations: 7.421 MB / 382.2 MB, free: 17.22 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches