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.001476/0.001475, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001886/0.001886, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3085, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002819/0.3114, allocations: 1.571 MB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3134, allocations: 0.9004 MB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.854e-05/0.3136, allocations: 0 / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.3137, allocations: 7.875 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.3139, allocations: 31.8 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.3142, allocations: 51.86 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.3145, allocations: 167.7 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.3146, allocations: 33.38 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007278/0.3153, allocations: 0.6317 MB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.3155, allocations: 75.7 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/0.3156, allocations: 12 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.3156, allocations: 15.94 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.3158, allocations: 75.69 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3159, allocations: 135 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.3164, allocations: 453.1 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3164, allocations: 0 / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.837e-06/0.3165, allocations: 4 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.3165, allocations: 7.875 kB / 412.9 MB, free: 13.37 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.0009867/0.3175, allocations: 0.8217 MB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3175, allocations: 8.031 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.745e-05/0.3176, allocations: 42.73 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.3177, allocations: 48.66 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.318, allocations: 294.5 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.3181, allocations: 12.38 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.3181, allocations: 8.375 kB / 414.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/0.3185, allocations: 177.7 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3185, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.3185, allocations: 4 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3185, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.3187, allocations: 91.88 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008024/0.3195, allocations: 0.5043 MB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3198, allocations: 126.5 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.32, allocations: 112.9 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.32, allocations: 4 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004363/0.3204, allocations: 238.6 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.3204, allocations: 0 / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009592/0.3214, allocations: 0.611 MB / 416 MB, free: 10.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.3215, allocations: 195.9 kB / 416.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006433/0.3222, allocations: 0.5679 MB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.3222, allocations: 29.7 kB / 416.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.652e-05/0.3223, allocations: 113.1 kB / 416.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.617e-05/0.3223, allocations: 31.8 kB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.3225, allocations: 101.5 kB / 417 MB, free: 8.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3226, allocations: 338.8 kB / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.3228, allocations: 79.91 kB / 417.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.3229, allocations: 109.7 kB / 417.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.3233, allocations: 426.7 kB / 417.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3234, allocations: 0 / 417.9 MB, free: 7.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006404/0.324, allocations: 0.5051 MB / 418.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.3241, allocations: 156.5 kB / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3241, allocations: 0 / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3242, allocations: 4 kB / 418.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.183e-05/0.3242, allocations: 4.062 kB / 418.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3242, allocations: 0 / 418.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.3244, allocations: 20.02 kB / 418.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.3245, allocations: 93.25 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.0003464/0.3248, allocations: 404 kB / 419.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.3249, allocations: 51.66 kB / 419.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.325, allocations: 75.45 kB / 419.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.325, allocations: 0 / 419.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.325, allocations: 0 / 419.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.325, allocations: 3.938 kB / 419.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.3261, allocations: 0.9595 MB / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3261, allocations: 4 kB / 420.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-06/0.3261, allocations: 0 / 420.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3261, allocations: 0 / 420.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.3262, allocations: 23.98 kB / 420.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3262, allocations: 3.938 kB / 420.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3262, allocations: 0 / 420.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007509/0.3269, allocations: 0.6597 MB / 420.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.3273, allocations: 264.6 kB / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.483e-05/0.3274, allocations: 12 kB / 421.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3275, allocations: 19.91 kB / 421.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.3277, allocations: 55.94 kB / 421.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.427e-05/0.3278, allocations: 109.2 kB / 421.3 MB, free: 4.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005101/0.3283, allocations: 418.8 kB / 421.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3283, allocations: 0 / 421.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.3286, allocations: 48 kB / 421.8 MB, free: 3.801 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.001226/0.3299, allocations: 1.235 MB / 423 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006547/0.3305, allocations: 0.5321 MB / 423.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3305, allocations: 0 / 423.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004165/0.331, allocations: 468.9 kB / 424 MB, free: 1.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008667/0.3318, allocations: 202.3 kB / 424.2 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003889/0.3357, allocations: 3.225 MB / 427.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.3363, allocations: 0.8182 MB / 428.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.3364, allocations: 8.875 kB / 428.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.642e-05/0.3365, allocations: 47.42 kB / 428.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3365, allocations: 4 kB / 428.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.3623, allocations: 9.22 MB / 437.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.906, allocations: 7.844 kB / 437.6 MB, free: 3.68 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 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.csv","/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) Reference file matches