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.001116/0.001116, allocations: 173.7 kB / 16.41 MB, free: 5.684 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.387/1.387, allocations: 205.4 MB / 222.5 MB, free: 9.102 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.0007219/0.000722, allocations: 82.03 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004683/0.0004685, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2733, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001521/0.2749, allocations: 1.244 MB / 375.8 MB, free: 44.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.2765, allocations: 0.8564 MB / 376.6 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.031e-05/0.2766, allocations: 1.125 kB / 376.6 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.739e-05/0.2766, allocations: 5.156 kB / 376.7 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.953e-05/0.2767, allocations: 25.38 kB / 376.7 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.277, allocations: 45.09 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.2771, allocations: 117.9 kB / 376.8 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.673e-05/0.2772, allocations: 18.45 kB / 376.9 MB, free: 43.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006656/0.2779, allocations: 0.5674 MB / 377.4 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.2781, allocations: 105.6 kB / 377.5 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.846e-05/0.2781, allocations: 3.562 kB / 377.5 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.963e-05/0.2782, allocations: 5.125 kB / 377.5 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.216e-05/0.2783, allocations: 69.45 kB / 377.6 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.922e-05/0.2784, allocations: 78.73 kB / 377.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.2786, allocations: 369.4 kB / 378 MB, free: 43.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2787, allocations: 0 / 378 MB, free: 43.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2787, allocations: 0 / 378 MB, free: 43.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2787, allocations: 1.125 kB / 378 MB, free: 43.04 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.0006224/0.2793, allocations: 0.729 MB / 378.8 MB, free: 42.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2794, allocations: 12.94 kB / 378.8 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.145e-05/0.2795, allocations: 41.78 kB / 378.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.2798, allocations: 290.3 kB / 379.1 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.2798, allocations: 4.969 kB / 379.1 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.2798, allocations: 12.84 kB / 379.1 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.2802, allocations: 164.5 kB / 379.3 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2802, allocations: 1.281 kB / 379.3 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.2802, allocations: 8.297 kB / 379.3 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2803, allocations: 5.547 kB / 379.3 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.2804, allocations: 85.92 kB / 379.4 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.2811, allocations: 0.5024 MB / 379.9 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.2813, allocations: 121.6 kB / 380 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.2815, allocations: 111.2 kB / 380.1 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.2815, allocations: 5.25 kB / 380.1 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.2819, allocations: 251.9 kB / 380.4 MB, free: 41.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.2819, allocations: 0 / 380.4 MB, free: 41.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009707/0.2829, allocations: 0.6063 MB / 381 MB, free: 40.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.283, allocations: 195.4 kB / 381.2 MB, free: 40.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006815/0.2837, allocations: 0.5663 MB / 381.7 MB, free: 40.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.2837, allocations: 34.69 kB / 381.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.2838, allocations: 119.9 kB / 381.9 MB, free: 40.01 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.2838, allocations: 27.66 kB / 381.9 MB, free: 39.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.2839, allocations: 3.375 kB / 381.9 MB, free: 39.99 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.675e-05/0.2839, allocations: 327.4 kB / 382.2 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.2841, allocations: 80.11 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2842, allocations: 105.5 kB / 382.4 MB, free: 39.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.2844, allocations: 209.7 kB / 382.6 MB, free: 39.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2844, allocations: 4 kB / 382.6 MB, free: 39.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006339/0.2851, allocations: 0.4983 MB / 383.1 MB, free: 39.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.389e-05/0.2852, allocations: 151.9 kB / 383.3 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2852, allocations: 1.031 kB / 383.3 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.2852, allocations: 1.094 kB / 383.3 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-05/0.2852, allocations: 4.938 kB / 383.3 MB, free: 38.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2852, allocations: 4.828 kB / 383.3 MB, free: 38.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.2854, allocations: 16.44 kB / 383.3 MB, free: 38.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.2856, allocations: 107.7 kB / 383.4 MB, free: 38.88 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.0003183/0.2859, allocations: 396.3 kB / 383.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/0.286, allocations: 46.89 kB / 383.8 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.2861, allocations: 70.25 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2861, allocations: 1.062 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2861, allocations: 1.094 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2861, allocations: 0 / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.2872, allocations: 0.9632 MB / 384.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2872, allocations: 1.625 kB / 384.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-06/0.2872, allocations: 4 kB / 384.9 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.2872, allocations: 1.25 kB / 384.9 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.2873, allocations: 22.98 kB / 384.9 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2873, allocations: 3.938 kB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2873, allocations: 1.125 kB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007212/0.288, allocations: 0.6566 MB / 385.6 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.2883, allocations: 260.4 kB / 385.8 MB, free: 36.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.167e-05/0.2883, allocations: 12 kB / 385.8 MB, free: 36.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.2885, allocations: 23.92 kB / 385.8 MB, free: 36.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.2887, allocations: 51.94 kB / 385.9 MB, free: 36.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.992e-05/0.2887, allocations: 105.2 kB / 386 MB, free: 36.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003892/0.2891, allocations: 418.8 kB / 386.4 MB, free: 36.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2892, allocations: 0 / 386.4 MB, free: 36.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002768/0.2894, allocations: 59.84 kB / 386.5 MB, free: 36.29 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.0001245/0.2896, allocations: 128.7 kB / 386.6 MB, free: 36.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000474/0.29, allocations: 0.536 MB / 387.1 MB, free: 35.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2901, allocations: 0 / 387.1 MB, free: 35.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.2903, allocations: 472.9 kB / 387.6 MB, free: 35.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.2911, allocations: 165 kB / 387.8 MB, free: 34.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2923, allocations: 0.8823 MB / 388.6 MB, free: 33.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2926, allocations: 0.8185 MB / 389.5 MB, free: 33.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.2927, allocations: 11.44 kB / 389.5 MB, free: 33.1 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2927, allocations: 0 / 389.5 MB, free: 33.1 MB / 298.7 MB Notification: Performance of Templates: time 0.005008/0.2977, allocations: 4.271 MB / 393.7 MB, free: 28.73 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