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.001969/0.001969, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002474/0.002474, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 61.81 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1122, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004918/0.1172, allocations: 1.566 MB / 359.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00382/0.121, allocations: 0.9021 MB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1212, allocations: 4 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.1214, allocations: 7.875 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.1216, allocations: 19.84 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004262/0.122, allocations: 55.88 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003806/0.1224, allocations: 179.6 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.1226, allocations: 17.41 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.1238, allocations: 0.6239 MB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/0.124, allocations: 79.7 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.428e-05/0.1241, allocations: 8 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.59e-05/0.1242, allocations: 12 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1244, allocations: 79.62 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.1246, allocations: 135 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006853/0.1253, allocations: 454.4 kB / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1254, allocations: 0 / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1254, allocations: 0 / 361.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.1254, allocations: 0 / 361.7 MB, free: 9.863 MB / 302.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.001384/0.1268, allocations: 0.814 MB / 362.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.1268, allocations: 8.031 kB / 362.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.626e-05/0.127, allocations: 42.75 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.1271, allocations: 44.41 kB / 362.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004796/0.1276, allocations: 298.1 kB / 362.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1277, allocations: 12.38 kB / 362.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.711e-05/0.1277, allocations: 12.38 kB / 362.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.1283, allocations: 169.7 kB / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1284, allocations: 0 / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.1284, allocations: 4 kB / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.1284, allocations: 0 / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.1288, allocations: 87.89 kB / 363.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.13, allocations: 0.5004 MB / 363.7 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004063/0.1304, allocations: 126.5 kB / 363.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000362/0.1308, allocations: 108.9 kB / 363.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.1309, allocations: 0 / 363.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006698/0.1315, allocations: 245.9 kB / 364.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 5.34e-06/0.1316, allocations: 7.984 kB / 364.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001727/0.1333, allocations: 0.6147 MB / 364.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/0.1335, allocations: 195.9 kB / 365 MB, free: 6.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.1348, allocations: 0.56 MB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.721e-05/0.1348, allocations: 33.7 kB / 365.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.135, allocations: 113.1 kB / 365.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.532e-05/0.1351, allocations: 35.59 kB / 365.7 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.1353, allocations: 97.41 kB / 365.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001974/0.1355, allocations: 330.8 kB / 366.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.1358, allocations: 79.95 kB / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.1362, allocations: 97.67 kB / 366.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007493/0.1369, allocations: 445.6 kB / 366.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.137, allocations: 4.062 kB / 366.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001274/0.1382, allocations: 0.5057 MB / 367.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.1384, allocations: 148.6 kB / 367.4 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.1385, allocations: 3.938 kB / 367.4 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.1385, allocations: 3.984 kB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-05/0.1385, allocations: 0 / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1385, allocations: 4 kB / 367.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.1388, allocations: 12 kB / 367.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.139, allocations: 97.23 kB / 367.5 MB, free: 3.59 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.0006393/0.1397, allocations: 412 kB / 367.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.1398, allocations: 39.53 kB / 367.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001969/0.14, allocations: 67.48 kB / 368 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1401, allocations: 0 / 368 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1401, allocations: 7.938 kB / 368 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1401, allocations: 0 / 368 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002029/0.1421, allocations: 0.9821 MB / 369 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1422, allocations: 0 / 369 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-06/0.1422, allocations: 0 / 369 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1422, allocations: 0 / 369 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/0.1423, allocations: 23.98 kB / 369 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.1423, allocations: 3.938 kB / 369 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1423, allocations: 0 / 369 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.1438, allocations: 0.6634 MB / 369.7 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005865/0.1444, allocations: 252.4 kB / 369.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.1445, allocations: 8 kB / 369.9 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.1448, allocations: 23.92 kB / 370 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.1451, allocations: 55.94 kB / 370 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/0.1453, allocations: 105.2 kB / 370.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009567/0.1462, allocations: 418.8 kB / 370.5 MB, free: 368 kB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1463, allocations: 4 kB / 370.5 MB, free: 364 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006036/0.1469, allocations: 52 kB / 370.6 MB, free: 312 kB / 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.2137/0.3606, allocations: 1.214 MB / 371.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006377/0.3613, allocations: 0.5342 MB / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3613, allocations: 1 kB / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.3617, allocations: 470.5 kB / 372.8 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009611/0.3626, allocations: 192.9 kB / 373 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/0.367, allocations: 3.219 MB / 376.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.3673, allocations: 0.824 MB / 377 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.547e-05/0.3674, allocations: 13.12 kB / 377 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.3675, allocations: 45.95 kB / 377.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3675, allocations: 0 / 377.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.3944, allocations: 9.183 MB / 386.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.74/8.134, allocations: 5.062 kB / 386.3 MB, free: 14.08 MB / 302.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