Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001734/0.001734, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2802, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002688/0.2829, allocations: 1.571 MB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.2848, allocations: 0.8926 MB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.22e-05/0.2849, allocations: 4 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.038e-05/0.285, allocations: 11.86 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.155e-05/0.2851, allocations: 31.78 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002524/0.2853, allocations: 51.39 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002321/0.2856, allocations: 175.6 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.2857, allocations: 33.39 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006214/0.2863, allocations: 0.6356 MB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.2865, allocations: 75.7 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.2865, allocations: 12 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.454e-05/0.2866, allocations: 12 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.018e-05/0.2867, allocations: 75.62 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.2868, allocations: 135 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.2872, allocations: 454.4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2872, allocations: 0 / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.2872, allocations: 0 / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.958e-06/0.2873, allocations: 7.938 kB / 412.9 MB, free: 13.35 MB / 334.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.0008736/0.2881, allocations: 0.8076 MB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2882, allocations: 12.03 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.411e-05/0.2882, allocations: 38.75 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.753e-05/0.2883, allocations: 48.45 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.2886, allocations: 290.2 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.2887, allocations: 8.375 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.379e-05/0.2887, allocations: 8.375 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.289, allocations: 169.7 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2891, allocations: 4 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.2891, allocations: 8 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.2891, allocations: 4 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.2893, allocations: 83.95 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006942/0.29, allocations: 0.5003 MB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.2902, allocations: 122.5 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.2904, allocations: 116.9 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.2904, allocations: 0 / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/0.2908, allocations: 250.5 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.2908, allocations: 0 / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0008895/0.2917, allocations: 0.607 MB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.321e-05/0.2918, allocations: 195.9 kB / 416.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.2925, allocations: 0.5601 MB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.2925, allocations: 33.7 kB / 416.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.2926, allocations: 117 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.603e-05/0.2927, allocations: 31.69 kB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.2928, allocations: 97.41 kB / 417 MB, free: 8.926 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2929, allocations: 330.9 kB / 417.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2931, allocations: 87.89 kB / 417.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.2933, allocations: 97.67 kB / 417.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.2937, allocations: 434.6 kB / 417.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2937, allocations: 4 kB / 417.9 MB, free: 7.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006459/0.2943, allocations: 0.5092 MB / 418.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.537e-05/0.2944, allocations: 148.5 kB / 418.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2944, allocations: 80 / 418.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2944, allocations: 3.984 kB / 418.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.99e-05/0.2945, allocations: 8 kB / 418.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.2945, allocations: 3.984 kB / 418.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2946, allocations: 16.03 kB / 418.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.746e-05/0.2948, allocations: 97.23 kB / 418.7 MB, free: 7.066 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.000355/0.2951, allocations: 407.9 kB / 419.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.966e-05/0.2952, allocations: 43.53 kB / 419.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.345e-05/0.2953, allocations: 63.48 kB / 419.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2953, allocations: 4 kB / 419.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2953, allocations: 0 / 419.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2953, allocations: 0 / 419.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.2964, allocations: 0.9751 MB / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2964, allocations: 0 / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-06/0.2964, allocations: 0 / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2964, allocations: 4 kB / 420.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.2965, allocations: 15.98 kB / 420.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.2965, allocations: 7.938 kB / 420.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2965, allocations: 0 / 420.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007571/0.2972, allocations: 0.6633 MB / 420.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003112/0.2976, allocations: 252.4 kB / 421.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.788e-05/0.2976, allocations: 16 kB / 421.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.2978, allocations: 19.86 kB / 421.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.2979, allocations: 51.94 kB / 421.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.993e-05/0.298, allocations: 105.2 kB / 421.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004724/0.2985, allocations: 426.8 kB / 421.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2985, allocations: 0 / 421.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.2988, allocations: 51.94 kB / 421.8 MB, free: 3.805 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.001072/0.2999, allocations: 1.22 MB / 423 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006477/0.3006, allocations: 0.536 MB / 423.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3006, allocations: 0 / 423.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003764/0.301, allocations: 461.1 kB / 424 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007812/0.3018, allocations: 193.9 kB / 424.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.3056, allocations: 3.222 MB / 427.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.3061, allocations: 0.8182 MB / 428.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.692e-05/0.3062, allocations: 8.875 kB / 428.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.163e-05/0.3062, allocations: 47.42 kB / 428.3 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3062, allocations: 0 / 428.3 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.3335, allocations: 9.35 MB / 437.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.064, allocations: 8.875 kB / 437.6 MB, free: 3.578 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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