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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 109.4 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 51.92 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1528, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003816/0.1567, allocations: 1.559 MB / 376.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.1594, allocations: 0.9058 MB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1596, allocations: 4 kB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.1598, allocations: 7.875 kB / 377.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.16, allocations: 27.78 kB / 377.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000424/0.1604, allocations: 51.89 kB / 377.7 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.1607, allocations: 175.7 kB / 377.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1609, allocations: 21.39 kB / 377.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008173/0.1617, allocations: 0.6356 MB / 378.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.1619, allocations: 79.64 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.766e-05/0.162, allocations: 12 kB / 378.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.852e-05/0.162, allocations: 16 kB / 378.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.1622, allocations: 67.75 kB / 378.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.1623, allocations: 135 kB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000522/0.1629, allocations: 462.3 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1629, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1629, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.1629, allocations: 0 / 379.3 MB, free: 436 kB / 318.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.3552/0.5181, allocations: 0.8042 MB / 380.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.5182, allocations: 8.812 kB / 380.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.414e-05/0.5183, allocations: 46.97 kB / 380.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.5186, allocations: 293.6 kB / 380.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.5186, allocations: 10.42 kB / 380.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.5187, allocations: 10.56 kB / 380.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.5191, allocations: 168.6 kB / 380.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.5192, allocations: 4.125 kB / 380.6 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.5192, allocations: 8.062 kB / 380.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.5192, allocations: 1.375 kB / 380.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.5194, allocations: 87.23 kB / 380.7 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.5205, allocations: 0.4981 MB / 381.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.5208, allocations: 124.7 kB / 381.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.521, allocations: 111.6 kB / 381.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.521, allocations: 0 / 381.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000736/0.5218, allocations: 243.7 kB / 381.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.374e-06/0.5218, allocations: 0 / 381.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001951/0.5238, allocations: 0.6135 MB / 382.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000227/0.524, allocations: 196.5 kB / 382.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.5256, allocations: 0.5675 MB / 383 MB, free: 11.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.5257, allocations: 33.88 kB / 383.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.5258, allocations: 114 kB / 383.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.245e-05/0.5259, allocations: 33.66 kB / 383.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/0.5262, allocations: 100.4 kB / 383.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002482/0.5264, allocations: 333.4 kB / 383.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.5267, allocations: 79.17 kB / 383.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.5271, allocations: 103.6 kB / 383.8 MB, free: 11.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006608/0.5277, allocations: 438.6 kB / 384.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.5278, allocations: 0 / 384.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001309/0.5291, allocations: 0.5029 MB / 384.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002191/0.5293, allocations: 154.3 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.5293, allocations: 1.094 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.5294, allocations: 1.094 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.394e-05/0.5294, allocations: 4.141 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.5294, allocations: 0.9375 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.5297, allocations: 16.78 kB / 384.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.5299, allocations: 96.89 kB / 385 MB, free: 10.46 MB / 318.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.0006524/0.5306, allocations: 407.9 kB / 385.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.5307, allocations: 46.94 kB / 385.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.5309, allocations: 71.52 kB / 385.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.5309, allocations: 2.047 kB / 385.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.5309, allocations: 1.094 kB / 385.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.5309, allocations: 0 / 385.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.5328, allocations: 0.9576 MB / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5328, allocations: 0 / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.435e-06/0.5328, allocations: 4.438 kB / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.5328, allocations: 0 / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.505e-05/0.5329, allocations: 19.95 kB / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.5329, allocations: 1.312 kB / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5329, allocations: 1.875 kB / 386.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.5341, allocations: 0.6656 MB / 387.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004587/0.5346, allocations: 256.8 kB / 387.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.711e-05/0.5347, allocations: 19.81 kB / 387.5 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.5349, allocations: 15.73 kB / 387.5 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.5351, allocations: 57.61 kB / 387.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002363/0.5354, allocations: 102.8 kB / 387.6 MB, free: 8.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006983/0.5361, allocations: 421.5 kB / 388 MB, free: 8.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5361, allocations: 0 / 388 MB, free: 8.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004364/0.5365, allocations: 56.47 kB / 388.1 MB, free: 8.598 MB / 318.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.0002447/0.5368, allocations: 120.1 kB / 388.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008731/0.5377, allocations: 0.5371 MB / 388.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.5377, allocations: 0 / 388.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.5382, allocations: 462.5 kB / 389.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.5393, allocations: 190.7 kB / 389.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.5414, allocations: 0.746 MB / 390.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007862/0.5422, allocations: 0.8266 MB / 391 MB, free: 6.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.5424, allocations: 15.33 kB / 391 MB, free: 6.473 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.5424, allocations: 18.19 kB / 391 MB, free: 6.461 MB / 318.1 MB Notification: Performance of SimCode: time 5.13e-06/0.5425, allocations: 112 / 391 MB, free: 6.461 MB / 318.1 MB Notification: Performance of Templates: time 0.0249/0.5674, allocations: 7.44 MB / 398.4 MB, free: 4.562 MB / 318.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches