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.001186/0.001186, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2689, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003414/0.2724, allocations: 1.563 MB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.2744, allocations: 0.9004 MB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.2745, allocations: 0 / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.2747, allocations: 15.86 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.2748, allocations: 19.86 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.2751, allocations: 47.88 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.2754, allocations: 183.6 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.2755, allocations: 21.41 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006817/0.2762, allocations: 0.6278 MB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.2764, allocations: 91.61 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.2764, allocations: 12 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.581e-05/0.2765, allocations: 8 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.2766, allocations: 83.62 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2767, allocations: 131 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.2772, allocations: 458.4 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.2772, allocations: 0 / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2772, allocations: 3.938 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.2772, allocations: 0 / 412.9 MB, free: 13.38 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.001041/0.2783, allocations: 0.8115 MB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2783, allocations: 12.03 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.894e-05/0.2784, allocations: 34.75 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.367e-05/0.2785, allocations: 40.47 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.2789, allocations: 298.2 kB / 414.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.2789, allocations: 8.375 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.279, allocations: 12.36 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00037/0.2793, allocations: 173.6 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.2794, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.2794, allocations: 7.984 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2794, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.2796, allocations: 83.95 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008492/0.2804, allocations: 0.4964 MB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.2807, allocations: 122.5 kB / 415 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.2809, allocations: 112.9 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.2809, allocations: 0 / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/0.2813, allocations: 258.5 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 3.496e-06/0.2813, allocations: 7.984 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009848/0.2823, allocations: 0.607 MB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.503e-05/0.2824, allocations: 195.9 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.2832, allocations: 0.5601 MB / 416.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.2832, allocations: 29.7 kB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.2833, allocations: 117 kB / 416.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.258e-05/0.2833, allocations: 27.66 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.2835, allocations: 101.5 kB / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.2836, allocations: 338.7 kB / 417.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.2838, allocations: 79.95 kB / 417.4 MB, free: 8.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.284, allocations: 97.67 kB / 417.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.2844, allocations: 426.7 kB / 417.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2844, allocations: 3.984 kB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007074/0.2851, allocations: 0.5132 MB / 418.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.2852, allocations: 152.5 kB / 418.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2852, allocations: 4.109 kB / 418.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2853, allocations: 3.938 kB / 418.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.947e-05/0.2853, allocations: 0 / 418.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.2853, allocations: 7.984 kB / 418.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.2854, allocations: 11.98 kB / 418.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.2856, allocations: 101.2 kB / 418.7 MB, free: 7.098 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.0003589/0.2859, allocations: 407.8 kB / 419.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.286, allocations: 39.53 kB / 419.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.631e-05/0.2861, allocations: 75.47 kB / 419.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2861, allocations: 0 / 419.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2861, allocations: 0 / 419.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.2861, allocations: 4 kB / 419.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.2872, allocations: 0.9595 MB / 420.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2873, allocations: 0 / 420.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-06/0.2873, allocations: 3.938 kB / 420.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.2873, allocations: 0 / 420.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.2873, allocations: 23.98 kB / 420.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2873, allocations: 4.062 kB / 420.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2873, allocations: 8 kB / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.2882, allocations: 0.6556 MB / 420.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.2885, allocations: 252.4 kB / 421.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.2886, allocations: 12 kB / 421.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.2888, allocations: 19.92 kB / 421.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.289, allocations: 51.94 kB / 421.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.2891, allocations: 105.2 kB / 421.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005276/0.2896, allocations: 426.8 kB / 421.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2896, allocations: 0 / 421.7 MB, free: 3.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.2899, allocations: 51.94 kB / 421.8 MB, free: 3.844 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.001209/0.2912, allocations: 1.227 MB / 423 MB, free: 2.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006459/0.2918, allocations: 0.5399 MB / 423.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2918, allocations: 0 / 423.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003992/0.2922, allocations: 457 kB / 424 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008594/0.2931, allocations: 196.4 kB / 424.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004096/0.2972, allocations: 3.222 MB / 427.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.2977, allocations: 0.8182 MB / 428.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.78e-05/0.2978, allocations: 16.86 kB / 428.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.2979, allocations: 47.36 kB / 428.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2979, allocations: 4 kB / 428.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.33, allocations: 9.344 MB / 437.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.022, allocations: 4.875 kB / 437.6 MB, free: 3.613 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