Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_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.001209/0.001209, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001203/0.001203, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.83/1.83, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 50.83 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1221, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004158/0.1263, allocations: 1.548 MB / 351.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.1289, allocations: 0.8746 MB / 352.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.1291, allocations: 0 / 352.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.1294, allocations: 15.8 kB / 352.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.1295, allocations: 23.8 kB / 352.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.13, allocations: 51.88 kB / 352.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.1305, allocations: 175.7 kB / 352.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.1307, allocations: 17.39 kB / 352.9 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009626/0.1317, allocations: 0.62 MB / 353.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.132, allocations: 87.62 kB / 353.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.283e-05/0.1321, allocations: 16 kB / 353.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.1321, allocations: 8 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.1323, allocations: 75.69 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.1325, allocations: 135 kB / 353.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005096/0.133, allocations: 446.4 kB / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.133, allocations: 0 / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.133, allocations: 0 / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.133, allocations: 0 / 354.2 MB, free: 224 kB / 286.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.001312/0.1343, allocations: 0.814 MB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.1344, allocations: 12.03 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.83e-05/0.1345, allocations: 50.73 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.1346, allocations: 40.47 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.1351, allocations: 298.1 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.1351, allocations: 4.375 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.1352, allocations: 12.38 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.1356, allocations: 173.6 kB / 355.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1356, allocations: 3.938 kB / 355.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.1357, allocations: 4 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1357, allocations: 3.984 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.1359, allocations: 83.95 kB / 355.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.137, allocations: 0.5003 MB / 356.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.1373, allocations: 122.5 kB / 356.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.1375, allocations: 108.9 kB / 356.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.1375, allocations: 4 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005412/0.138, allocations: 247.7 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/0.1381, allocations: 0 / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001043/0.1391, allocations: 0.6142 MB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.1393, allocations: 199.9 kB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008115/0.1401, allocations: 0.5561 MB / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.1401, allocations: 33.7 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.1402, allocations: 121.1 kB / 358.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.755e-05/0.1403, allocations: 35.55 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.1405, allocations: 97.34 kB / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1406, allocations: 334.8 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.1408, allocations: 79.95 kB / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.141, allocations: 101 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.1415, allocations: 438.8 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1415, allocations: 0 / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007518/0.1422, allocations: 0.5018 MB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.1424, allocations: 152.5 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1424, allocations: 160 / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.1424, allocations: 0 / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.48e-05/0.1424, allocations: 4 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1424, allocations: 3.984 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.1426, allocations: 15.98 kB / 359.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.1428, allocations: 113.3 kB / 360.1 MB, free: 9.918 MB / 302.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.0003981/0.1432, allocations: 395.9 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.385e-05/0.1433, allocations: 39.53 kB / 360.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1434, allocations: 71.47 kB / 360.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1434, allocations: 4 kB / 360.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.1434, allocations: 0 / 360.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1434, allocations: 0 / 360.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.1446, allocations: 0.9673 MB / 361.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1446, allocations: 4 kB / 361.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.25e-05/0.1446, allocations: 3.984 kB / 361.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.1446, allocations: 3.938 kB / 361.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.1447, allocations: 19.98 kB / 361.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1447, allocations: 3.938 kB / 361.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1447, allocations: 4 kB / 361.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007743/0.1455, allocations: 0.6556 MB / 362.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.1458, allocations: 256.4 kB / 362.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.69e-05/0.1459, allocations: 16 kB / 362.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.1461, allocations: 15.94 kB / 362.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.1462, allocations: 59.86 kB / 362.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.1463, allocations: 93.25 kB / 362.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005167/0.1469, allocations: 426.8 kB / 363.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1469, allocations: 0 / 363.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.1472, allocations: 52 kB / 363.1 MB, free: 6.664 MB / 302.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.001358/0.1486, allocations: 1.224 MB / 364.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.1492, allocations: 0.5321 MB / 364.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1492, allocations: 0 / 364.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.1496, allocations: 468.9 kB / 365.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008783/0.1505, allocations: 201.7 kB / 365.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004402/0.1549, allocations: 3.227 MB / 368.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1862/0.3411, allocations: 0.8156 MB / 369.6 MB, free: 25.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.3413, allocations: 12 kB / 369.6 MB, free: 25.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.788e-05/0.3414, allocations: 43.81 kB / 369.6 MB, free: 25.66 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3414, allocations: 1.562 kB / 369.6 MB, free: 25.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.3695, allocations: 9.177 MB / 378.8 MB, free: 23.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.617/8.987, allocations: 18.11 kB / 378.8 MB, free: 23.35 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches