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.001667/0.001675, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001891/0.001891, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2866, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002632/0.2893, allocations: 1.568 MB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2913, allocations: 0.8926 MB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.914e-05/0.2914, allocations: 4 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.2915, allocations: 15.86 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.2916, allocations: 19.8 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.2918, allocations: 59.81 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.2921, allocations: 167.7 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2922, allocations: 33.31 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007031/0.2929, allocations: 0.62 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.2931, allocations: 75.69 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.2931, allocations: 12 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.589e-05/0.2932, allocations: 12 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2933, allocations: 79.7 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.2934, allocations: 135 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.2939, allocations: 453.1 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2939, allocations: 3.938 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2939, allocations: 0 / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2939, allocations: 0 / 412.9 MB, free: 13.4 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.0009237/0.2948, allocations: 0.8255 MB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.2949, allocations: 12.02 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.406e-05/0.295, allocations: 38.75 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.88e-05/0.295, allocations: 48.66 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.2954, allocations: 298.5 kB / 414.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.2954, allocations: 4.375 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.2954, allocations: 12.38 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.2958, allocations: 173.6 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2958, allocations: 4 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.2959, allocations: 7.938 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2959, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.2961, allocations: 83.95 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007558/0.2968, allocations: 0.512 MB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.2971, allocations: 118.5 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.2972, allocations: 108.9 kB / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.2973, allocations: 0 / 415.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004156/0.2977, allocations: 246.6 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.2977, allocations: 4 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001026/0.2987, allocations: 0.6183 MB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.2989, allocations: 199.8 kB / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007192/0.2996, allocations: 0.564 MB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.2997, allocations: 29.7 kB / 416.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.2998, allocations: 117.1 kB / 416.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.2998, allocations: 31.75 kB / 416.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.3, allocations: 97.5 kB / 417 MB, free: 8.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.3002, allocations: 342.8 kB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.3003, allocations: 79.95 kB / 417.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.3005, allocations: 101.8 kB / 417.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.301, allocations: 426.7 kB / 417.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.301, allocations: 0 / 417.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007588/0.3018, allocations: 0.5051 MB / 418.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.3019, allocations: 156.5 kB / 418.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3019, allocations: 4.031 kB / 418.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3019, allocations: 4 kB / 418.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.086e-05/0.302, allocations: 0 / 418.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.302, allocations: 0 / 418.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.3021, allocations: 15.98 kB / 418.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3022, allocations: 97.19 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.0004127/0.3027, allocations: 404 kB / 419.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.639e-05/0.3027, allocations: 47.72 kB / 419.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.3028, allocations: 75.47 kB / 419.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3029, allocations: 0 / 419.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3029, allocations: 0 / 419.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3029, allocations: 0 / 419.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.3041, allocations: 0.9595 MB / 420.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3041, allocations: 0 / 420.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-06/0.3041, allocations: 7.984 kB / 420.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3041, allocations: 0 / 420.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.3042, allocations: 23.94 kB / 420.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.309e-06/0.3042, allocations: 7.922 kB / 420.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3042, allocations: 4 kB / 420.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008433/0.305, allocations: 0.6558 MB / 420.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003446/0.3054, allocations: 256.6 kB / 421.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.738e-05/0.3055, allocations: 16.17 kB / 421.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.3056, allocations: 15.94 kB / 421.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.3058, allocations: 63.91 kB / 421.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.3059, allocations: 105.2 kB / 421.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005298/0.3065, allocations: 422.8 kB / 421.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3065, allocations: 0 / 421.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.3068, allocations: 48 kB / 421.8 MB, free: 3.832 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.001244/0.308, allocations: 1.224 MB / 423 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006468/0.3087, allocations: 0.5322 MB / 423.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3087, allocations: 0 / 423.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004615/0.3092, allocations: 468.9 kB / 424 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008301/0.31, allocations: 196.2 kB / 424.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004186/0.3142, allocations: 3.225 MB / 427.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.3148, allocations: 0.8221 MB / 428.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.169e-05/0.3149, allocations: 16.86 kB / 428.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.135e-05/0.3149, allocations: 47.42 kB / 428.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.315, allocations: 0 / 428.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03124/0.3462, allocations: 9.223 MB / 437.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.453, allocations: 7.484 kB / 437.5 MB, free: 3.715 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.1.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