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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_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.001437/0.001437, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001706/0.001707, allocations: 191 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001403/0.001403, allocations: 51.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.08944, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002591/0.09207, allocations: 1.559 MB / 376.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.09387, allocations: 0.9058 MB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.09395, allocations: 0 / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.205e-05/0.09406, allocations: 7.922 kB / 377.1 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.621e-05/0.09415, allocations: 31.78 kB / 377.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.09443, allocations: 51.89 kB / 377.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.09467, allocations: 171.7 kB / 377.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.09478, allocations: 29.38 kB / 377.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000596/0.09538, allocations: 0.6395 MB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.09555, allocations: 79.64 kB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.381e-05/0.0956, allocations: 12 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.325e-05/0.09564, allocations: 12 kB / 378.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.09574, allocations: 71.75 kB / 378.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.09587, allocations: 135 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003903/0.09627, allocations: 458.6 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.09629, allocations: 0 / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0963, allocations: 0 / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.09631, allocations: 0 / 378.8 MB, free: 0.9141 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.0008717/0.09719, allocations: 0.8139 MB / 379.6 MB, free: 20 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.09723, allocations: 8.031 kB / 379.6 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1718/0.2691, allocations: 41.09 kB / 379.6 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.2693, allocations: 41.09 kB / 379.7 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.2697, allocations: 294 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.2698, allocations: 6.484 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.2698, allocations: 12.56 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.2703, allocations: 169.4 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2703, allocations: 3.938 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.2703, allocations: 6 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2703, allocations: 4.453 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.2705, allocations: 86.09 kB / 380.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000971/0.2715, allocations: 0.4965 MB / 380.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.2718, allocations: 127.1 kB / 380.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.272, allocations: 107.8 kB / 381 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.272, allocations: 1.375 kB / 381 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.2724, allocations: 245.4 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.2724, allocations: 1.375 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001019/0.2734, allocations: 0.607 MB / 381.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.2735, allocations: 202.3 kB / 382 MB, free: 11.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008293/0.2743, allocations: 0.5614 MB / 382.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.2744, allocations: 30.61 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.443e-05/0.2745, allocations: 119.5 kB / 382.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.2745, allocations: 27.72 kB / 382.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.2747, allocations: 99.41 kB / 382.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.2748, allocations: 335.9 kB / 383.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.275, allocations: 83.47 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.2752, allocations: 108.6 kB / 383.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.2756, allocations: 430 kB / 383.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2756, allocations: 0 / 383.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007164/0.2763, allocations: 0.5023 MB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.838e-05/0.2764, allocations: 155.1 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2764, allocations: 2.344 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2764, allocations: 0 / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.22e-05/0.2765, allocations: 2.453 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2765, allocations: 4.906 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.2767, allocations: 12.94 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.2768, allocations: 96.59 kB / 384.6 MB, free: 10.38 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.0003073/0.2771, allocations: 405.4 kB / 385 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.042e-05/0.2772, allocations: 44.16 kB / 385 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.585e-05/0.2773, allocations: 72.14 kB / 385.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2773, allocations: 0 / 385.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2773, allocations: 1.078 kB / 385.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2773, allocations: 1 kB / 385.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2783, allocations: 0.97 MB / 386 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2784, allocations: 1.906 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.823e-06/0.2784, allocations: 1.219 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2784, allocations: 0.8438 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.2784, allocations: 23.89 kB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2784, allocations: 0 / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2784, allocations: 7.984 kB / 386.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007541/0.2792, allocations: 0.6512 MB / 386.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003211/0.2795, allocations: 261.3 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.309e-05/0.2796, allocations: 12.31 kB / 387 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2798, allocations: 12.7 kB / 387 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.2799, allocations: 64.61 kB / 387.1 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.2801, allocations: 108.7 kB / 387.2 MB, free: 8.727 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.2806, allocations: 419.4 kB / 387.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2806, allocations: 1.188 kB / 387.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.2809, allocations: 52.34 kB / 387.6 MB, free: 8.508 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.00101/0.2819, allocations: 1.223 MB / 388.9 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.2825, allocations: 0.5357 MB / 389.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2826, allocations: 0 / 389.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003512/0.2829, allocations: 463.9 kB / 389.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.2838, allocations: 189.5 kB / 390 MB, free: 6.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004091/0.2879, allocations: 3.233 MB / 393.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.2883, allocations: 0.8163 MB / 394.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.2884, allocations: 14.7 kB / 394.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.2885, allocations: 44.73 kB / 394.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.2885, allocations: 0 / 394.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.3197, allocations: 9.368 MB / 403.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.842/8.162, allocations: 1.344 kB / 403.5 MB, free: 0.6445 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Mux2x1.out Variables in the result:Input0.n,Input0.t[1],Input0.t[2],Input0.t[3],Input0.t[4],Input0.t[5],Input0.t[6],Input0.x[1],Input0.x[2],Input0.x[3],Input0.x[4],Input0.x[5],Input0.x[6],Input0.y,Input0.y0,Input1.n,Input1.t[1],Input1.t[2],Input1.t[3],Input1.t[4],Input1.t[5],Input1.t[6],Input1.x[1],Input1.x[2],Input1.x[3],Input1.x[4],Input1.x[5],Input1.x[6],Input1.y,Input1.y0,Mux2x1.in0,Mux2x1.in1,Mux2x1.out,Mux2x1.sel,Mux2x1.strength,Mux2x1.tHL,Mux2x1.tLH,Select.after,Select.before,Select.stepTime,Select.y,time