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.0009772/0.0009774, allocations: 94.88 kB / 16.65 MB, free: 6.27 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.001031/0.001031, allocations: 180.4 kB / 17.57 MB, free: 5.883 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.482/1.482, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 4 kB / 301.5 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1311, allocations: 50.41 MB / 351.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002038/0.1331, allocations: 1.27 MB / 353.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1352, allocations: 0.878 MB / 354.1 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.802e-05/0.1353, allocations: 4 kB / 354.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.375e-05/0.1354, allocations: 11.92 kB / 354.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.1355, allocations: 19.86 kB / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003008/0.1358, allocations: 55.83 kB / 354.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.136, allocations: 127.7 kB / 354.3 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1361, allocations: 17.39 kB / 354.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007163/0.1368, allocations: 0.6317 MB / 354.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.137, allocations: 95.59 kB / 355 MB, free: 492 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.137, allocations: 4 kB / 355 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.092e-05/0.1371, allocations: 4 kB / 355 MB, free: 484 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.1372, allocations: 75.64 kB / 355.1 MB, free: 408 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.1374, allocations: 148.7 kB / 355.3 MB, free: 252 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.1378, allocations: 438.3 kB / 355.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1378, allocations: 0 / 355.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1378, allocations: 0 / 355.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.1378, allocations: 0 / 355.7 MB, free: 15.82 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.0007721/0.1386, allocations: 0.7364 MB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.1387, allocations: 8.031 kB / 356.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.332e-05/0.1387, allocations: 42.75 kB / 356.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.141e-05/0.1388, allocations: 44.38 kB / 356.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.1392, allocations: 290.2 kB / 356.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.1392, allocations: 16.31 kB / 356.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.1392, allocations: 12.36 kB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.1396, allocations: 169.2 kB / 357 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1397, allocations: 3.938 kB / 357 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.1397, allocations: 11.98 kB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1397, allocations: 7.984 kB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.1399, allocations: 83.95 kB / 357.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007773/0.1407, allocations: 0.4964 MB / 357.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.1409, allocations: 126.5 kB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.1411, allocations: 108.9 kB / 357.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.1411, allocations: 3.984 kB / 357.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004045/0.1415, allocations: 242.6 kB / 358.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.1416, allocations: 0 / 358.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001015/0.1426, allocations: 0.6148 MB / 358.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1427, allocations: 191.9 kB / 358.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007109/0.1434, allocations: 0.5678 MB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.1435, allocations: 33.7 kB / 359.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.1436, allocations: 117.1 kB / 359.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.1436, allocations: 27.62 kB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.1437, allocations: 25.7 kB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1438, allocations: 334.8 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.144, allocations: 79.91 kB / 360 MB, free: 11.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.1442, allocations: 101.7 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004744/0.1446, allocations: 438.7 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1446, allocations: 0 / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000705/0.1454, allocations: 0.4979 MB / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.1455, allocations: 156.5 kB / 361.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1455, allocations: 0 / 361.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1455, allocations: 0 / 361.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.285e-05/0.1455, allocations: 3.938 kB / 361.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.1456, allocations: 4 kB / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1457, allocations: 20.02 kB / 361.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.1459, allocations: 105.3 kB / 361.4 MB, free: 9.676 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.0004037/0.1463, allocations: 396.1 kB / 361.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.1463, allocations: 47.44 kB / 361.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.1465, allocations: 71.47 kB / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.1465, allocations: 0 / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1465, allocations: 0 / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1465, allocations: 0 / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.1477, allocations: 0.9703 MB / 362.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1477, allocations: 4 kB / 362.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-06/0.1477, allocations: 0 / 362.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1477, allocations: 0 / 362.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.1477, allocations: 23.98 kB / 362.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1477, allocations: 3.938 kB / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1477, allocations: 0 / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007951/0.1485, allocations: 0.6595 MB / 363.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.1489, allocations: 256.4 kB / 363.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.896e-05/0.149, allocations: 12.19 kB / 363.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1491, allocations: 27.83 kB / 363.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.1493, allocations: 63.8 kB / 363.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.1494, allocations: 97.25 kB / 364 MB, free: 6.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005538/0.15, allocations: 422.8 kB / 364.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.15, allocations: 0 / 364.4 MB, free: 6.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.1503, allocations: 48 kB / 364.4 MB, free: 6.41 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.001313/0.1517, allocations: 1.228 MB / 365.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006751/0.1523, allocations: 0.5321 MB / 366.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1523, allocations: 0 / 366.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004302/0.1528, allocations: 468.9 kB / 366.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008868/0.1537, allocations: 178.4 kB / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.1579, allocations: 3.308 MB / 370.1 MB, free: 428 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2016/0.3594, allocations: 0.8059 MB / 370.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.3596, allocations: 15.22 kB / 370.9 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-05/0.3597, allocations: 41.23 kB / 371 MB, free: 24.74 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3597, allocations: 0.9062 kB / 371 MB, free: 24.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02602/0.3858, allocations: 8.306 MB / 379.3 MB, free: 22.92 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.386, allocations: 194.8 kB / 379.5 MB, free: 22.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/2.53, allocations: 0 / 379.5 MB, free: 22.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 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.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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches