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.001562/0.001562, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001716/0.001716, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.416/1.416, 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.001255/0.001255, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08676, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002797/0.0896, allocations: 1.575 MB / 376.2 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.09152, allocations: 0.898 MB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.09162, allocations: 0 / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.09175, allocations: 11.86 kB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.09187, allocations: 23.8 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.09217, allocations: 59.88 kB / 377.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.09243, allocations: 167.7 kB / 377.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.09254, allocations: 25.38 kB / 377.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006499/0.0932, allocations: 0.6356 MB / 378 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.09337, allocations: 83.62 kB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.827e-05/0.09343, allocations: 12 kB / 378.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.578e-05/0.09347, allocations: 12 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.359e-05/0.09357, allocations: 71.75 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.0937, allocations: 131 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.09411, allocations: 462.5 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.09413, allocations: 4 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09413, allocations: 0 / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.09415, allocations: 4 kB / 378.8 MB, free: 0.9219 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.001006/0.09516, allocations: 0.8099 MB / 379.6 MB, free: 32 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.09522, allocations: 8.031 kB / 379.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1894/0.2846, allocations: 38.59 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.2848, allocations: 40.72 kB / 379.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004208/0.2852, allocations: 292.5 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.2853, allocations: 10.06 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.2853, allocations: 10 kB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.2858, allocations: 170.6 kB / 380.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2858, allocations: 5.344 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.2858, allocations: 5.688 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2858, allocations: 2.297 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.286, allocations: 91.36 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.2871, allocations: 0.4951 MB / 380.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.2873, allocations: 123.4 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.2875, allocations: 114.6 kB / 381 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.2875, allocations: 1.375 kB / 381 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004324/0.288, allocations: 242.3 kB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.225e-06/0.288, allocations: 0 / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001015/0.289, allocations: 0.6087 MB / 381.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.2891, allocations: 200.6 kB / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008419/0.2899, allocations: 0.5614 MB / 382.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.29, allocations: 34.38 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.412e-05/0.2901, allocations: 117.8 kB / 382.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.2901, allocations: 28.86 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.2903, allocations: 99.58 kB / 382.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.677e-05/0.2904, allocations: 334 kB / 383.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.2906, allocations: 82.55 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2908, allocations: 102.5 kB / 383.4 MB, free: 11.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.2912, allocations: 432 kB / 383.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2912, allocations: 1.125 kB / 383.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007635/0.2919, allocations: 0.5006 MB / 384.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.7e-05/0.292, allocations: 155.2 kB / 384.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2921, allocations: 3.938 kB / 384.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2921, allocations: 1.188 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.561e-05/0.2921, allocations: 2.156 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.2921, allocations: 1.406 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.2923, allocations: 17.14 kB / 384.5 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.2924, allocations: 96.17 kB / 384.6 MB, free: 10.39 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.0003531/0.2928, allocations: 414.1 kB / 385 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.636e-05/0.2929, allocations: 45.25 kB / 385 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.293, allocations: 69.17 kB / 385.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.293, allocations: 2.188 kB / 385.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.293, allocations: 0 / 385.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.293, allocations: 0 / 385.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.2942, allocations: 0.9698 MB / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2942, allocations: 0 / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.706e-06/0.2942, allocations: 1.781 kB / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2942, allocations: 0 / 386.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.2943, allocations: 22.75 kB / 386.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2943, allocations: 1.906 kB / 386.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2943, allocations: 3.938 kB / 386.1 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008211/0.2951, allocations: 0.6586 MB / 386.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.2955, allocations: 253.6 kB / 387 MB, free: 8.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.2956, allocations: 14.12 kB / 387 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.2957, allocations: 12.41 kB / 387 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.2959, allocations: 57.78 kB / 387.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.2961, allocations: 109 kB / 387.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005493/0.2966, allocations: 421.8 kB / 387.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2966, allocations: 0 / 387.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003576/0.297, allocations: 48.16 kB / 387.6 MB, free: 8.531 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.001129/0.2981, allocations: 1.228 MB / 388.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005766/0.2987, allocations: 0.5309 MB / 389.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2987, allocations: 0 / 389.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.2991, allocations: 471.2 kB / 389.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000944/0.3, allocations: 202.1 kB / 390.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003965/0.304, allocations: 3.221 MB / 393.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.3045, allocations: 0.8239 MB / 394.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3046, allocations: 15.42 kB / 394.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.775e-05/0.3047, allocations: 46.19 kB / 394.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3047, allocations: 0 / 394.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.3328, allocations: 9.352 MB / 403.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/8.154, allocations: 5.25 kB / 403.5 MB, free: 0.6562 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