Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001186/0.001186, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2581, allocations: 49.43 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002754/0.2609, allocations: 1.554 MB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001903/0.2628, allocations: 0.8638 MB / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.2629, allocations: 4 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.491e-05/0.263, allocations: 11.86 kB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.631e-05/0.2631, allocations: 27.78 kB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.2634, allocations: 55.88 kB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.2636, allocations: 163.7 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.2637, allocations: 37.36 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006929/0.2644, allocations: 0.6239 MB / 403.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.2646, allocations: 75.64 kB / 403.6 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.29e-05/0.2646, allocations: 16 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.494e-05/0.2647, allocations: 12 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.2648, allocations: 79.69 kB / 403.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.265, allocations: 139 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.2654, allocations: 449.1 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2655, allocations: 0 / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2655, allocations: 0 / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2655, allocations: 0 / 404.3 MB, free: 4.703 MB / 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.0009537/0.2664, allocations: 0.8332 MB / 405.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2665, allocations: 8.031 kB / 405.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.509e-05/0.2666, allocations: 46.73 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.2666, allocations: 48.66 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.267, allocations: 290.6 kB / 405.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.267, allocations: 4.375 kB / 405.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.267, allocations: 12.38 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2674, allocations: 177.6 kB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.2674, allocations: 0 / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.2675, allocations: 4 kB / 405.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2675, allocations: 0 / 405.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.2677, allocations: 87.89 kB / 405.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007249/0.2684, allocations: 0.5043 MB / 406.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2686, allocations: 118.5 kB / 406.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.2688, allocations: 108.9 kB / 406.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.2688, allocations: 4 kB / 406.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.2693, allocations: 250.5 kB / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.2693, allocations: 0 / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001032/0.2703, allocations: 0.6173 MB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.2704, allocations: 195.9 kB / 407.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007097/0.2712, allocations: 0.564 MB / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.2712, allocations: 29.7 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.2713, allocations: 113.1 kB / 408.3 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.2713, allocations: 39.72 kB / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.2715, allocations: 97.55 kB / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.2717, allocations: 338.8 kB / 408.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.2718, allocations: 76.11 kB / 408.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.272, allocations: 105.6 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.2725, allocations: 430.6 kB / 409.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2725, allocations: 0 / 409.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007393/0.2733, allocations: 0.5019 MB / 409.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.2734, allocations: 156.6 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.2734, allocations: 3.938 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2734, allocations: 4 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.668e-05/0.2734, allocations: 0 / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2734, allocations: 3.938 kB / 410 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.2736, allocations: 15.98 kB / 410.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.2737, allocations: 97.25 kB / 410.1 MB, free: 14.39 MB / 334.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.0003883/0.2741, allocations: 404.2 kB / 410.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.974e-05/0.2742, allocations: 47.72 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.2743, allocations: 75.45 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2743, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2743, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2743, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.2755, allocations: 0.9594 MB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2755, allocations: 3.938 kB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.918e-06/0.2755, allocations: 4 kB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2755, allocations: 0 / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/0.2756, allocations: 27.98 kB / 411.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.2756, allocations: 3.938 kB / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2756, allocations: 0 / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008529/0.2765, allocations: 0.6637 MB / 412.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.2768, allocations: 256.6 kB / 412.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.2769, allocations: 12 kB / 412.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.277, allocations: 15.92 kB / 412.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.2772, allocations: 55.94 kB / 412.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.2773, allocations: 105.2 kB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005109/0.2778, allocations: 418.8 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2779, allocations: 3.938 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003023/0.2782, allocations: 48 kB / 413.2 MB, free: 11.13 MB / 334.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.001237/0.2794, allocations: 1.231 MB / 414.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006712/0.2801, allocations: 0.5282 MB / 415 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2801, allocations: 4 kB / 415 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.2806, allocations: 465.1 kB / 415.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.2814, allocations: 195.9 kB / 415.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004085/0.2855, allocations: 3.251 MB / 418.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.286, allocations: 0.8182 MB / 419.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.771e-05/0.2861, allocations: 12.86 kB / 419.7 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.672e-05/0.2862, allocations: 47.42 kB / 419.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2862, allocations: 0 / 419.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.3178, allocations: 9.221 MB / 429 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/8.518, allocations: 7.938 kB / 429 MB, free: 11.02 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches