Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001278/0.001285, allocations: 171.2 kB / 16.72 MB, free: 5.051 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.891/1.891, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0008395/0.0008394, allocations: 80.95 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2568, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001506/0.2584, allocations: 1.236 MB / 376.3 MB, free: 44.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.2601, allocations: 0.8628 MB / 377.2 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.495e-05/0.2602, allocations: 1.281 kB / 377.2 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.577e-05/0.2603, allocations: 12.86 kB / 377.2 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.01e-05/0.2603, allocations: 17.7 kB / 377.2 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002556/0.2606, allocations: 36.92 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.2608, allocations: 125.6 kB / 377.4 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.2609, allocations: 23.2 kB / 377.4 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000721/0.2616, allocations: 0.5654 MB / 378 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.2618, allocations: 98.09 kB / 378.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.2619, allocations: 5.031 kB / 378.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.69e-05/0.2619, allocations: 3.312 kB / 378.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.964e-05/0.262, allocations: 73.89 kB / 378.1 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.2622, allocations: 153.1 kB / 378.3 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000351/0.2625, allocations: 360.2 kB / 378.6 MB, free: 42.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2626, allocations: 0.9062 kB / 378.6 MB, free: 42.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2626, allocations: 0 / 378.6 MB, free: 42.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2626, allocations: 0 / 378.6 MB, free: 42.98 MB / 298.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.0006901/0.2633, allocations: 0.741 MB / 379.4 MB, free: 42.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2634, allocations: 9.312 kB / 379.4 MB, free: 42.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.612e-05/0.2634, allocations: 42.56 kB / 379.4 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.2637, allocations: 298.6 kB / 379.7 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2638, allocations: 9.719 kB / 379.7 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.2638, allocations: 9.062 kB / 379.7 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000368/0.2642, allocations: 174 kB / 379.9 MB, free: 41.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.2642, allocations: 0 / 379.9 MB, free: 41.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.2643, allocations: 8.406 kB / 379.9 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2643, allocations: 5.062 kB / 379.9 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2644, allocations: 82.92 kB / 380 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007397/0.2652, allocations: 0.4957 MB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.2655, allocations: 122.2 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.2657, allocations: 111.1 kB / 380.7 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.2657, allocations: 1.156 kB / 380.7 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004132/0.2661, allocations: 248 kB / 381 MB, free: 41.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.2661, allocations: 0 / 381 MB, free: 41.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001071/0.2672, allocations: 0.6068 MB / 381.6 MB, free: 40.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.2673, allocations: 195.6 kB / 381.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007454/0.268, allocations: 0.5625 MB / 382.3 MB, free: 40.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.2681, allocations: 34.17 kB / 382.4 MB, free: 40.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.2681, allocations: 111.6 kB / 382.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.2682, allocations: 32.08 kB / 382.5 MB, free: 39.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.2682, allocations: 2.812 kB / 382.5 MB, free: 39.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.161e-05/0.2683, allocations: 331.6 kB / 382.8 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.2685, allocations: 80.73 kB / 382.9 MB, free: 39.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.2686, allocations: 97.52 kB / 383 MB, free: 39.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.269, allocations: 442 kB / 383.4 MB, free: 39.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.269, allocations: 0 / 383.4 MB, free: 39.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006707/0.2697, allocations: 0.5059 MB / 384 MB, free: 38.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/0.2698, allocations: 148.7 kB / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2698, allocations: 80 / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2698, allocations: 1 kB / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-05/0.2698, allocations: 1.219 kB / 384.1 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.2698, allocations: 5.016 kB / 384.1 MB, free: 38.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.27, allocations: 24.77 kB / 384.1 MB, free: 38.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.2702, allocations: 106.8 kB / 384.2 MB, free: 38.6 MB / 298.7 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,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003424/0.2705, allocations: 404.8 kB / 384.6 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.2706, allocations: 46.36 kB / 384.7 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.2707, allocations: 70.77 kB / 384.7 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.2707, allocations: 1.469 kB / 384.7 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2707, allocations: 0 / 384.7 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2708, allocations: 5.344 kB / 384.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.272, allocations: 0.9592 MB / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.272, allocations: 0 / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-06/0.272, allocations: 5 kB / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.272, allocations: 1.062 kB / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.272, allocations: 19.23 kB / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2721, allocations: 0 / 385.7 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.2721, allocations: 5.25 kB / 385.7 MB, free: 37.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006758/0.2727, allocations: 0.6627 MB / 386.4 MB, free: 36.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.273, allocations: 256.4 kB / 386.7 MB, free: 36.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.2731, allocations: 12 kB / 386.7 MB, free: 36.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.2733, allocations: 19.92 kB / 386.7 MB, free: 36.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.2734, allocations: 55.88 kB / 386.7 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.68e-05/0.2735, allocations: 101.2 kB / 386.8 MB, free: 36.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004242/0.2739, allocations: 422.8 kB / 387.2 MB, free: 35.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2739, allocations: 0 / 387.2 MB, free: 35.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002901/0.2742, allocations: 48 kB / 387.3 MB, free: 35.83 MB / 298.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.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 (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.2744, allocations: 123.1 kB / 387.4 MB, free: 35.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004864/0.2749, allocations: 0.536 MB / 388 MB, free: 35.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2749, allocations: 0 / 388 MB, free: 35.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002752/0.2752, allocations: 472.8 kB / 388.4 MB, free: 34.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007046/0.2759, allocations: 166.3 kB / 388.6 MB, free: 34.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.277, allocations: 0.8863 MB / 389.5 MB, free: 33.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.2773, allocations: 0.8224 MB / 390.3 MB, free: 32.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.2773, allocations: 11.44 kB / 390.3 MB, free: 32.65 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2773, allocations: 0 / 390.3 MB, free: 32.65 MB / 298.7 MB Notification: Performance of Templates: time 0.005243/0.2826, allocations: 4.27 MB / 394.6 MB, free: 28.28 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches