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.001082/0.001082, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001138/0.001139, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.388/1.388, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009914/0.0009917, allocations: 48.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1135, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003721/0.1173, allocations: 1.556 MB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1194, allocations: 0.8629 MB / 352.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.566e-05/0.1195, allocations: 4 kB / 352.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.1196, allocations: 11.86 kB / 352.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.112e-05/0.1197, allocations: 23.84 kB / 352.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.12, allocations: 51.89 kB / 352.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002762/0.1203, allocations: 175.6 kB / 352.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.1205, allocations: 25.39 kB / 352.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006806/0.1211, allocations: 0.62 MB / 353.5 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.1213, allocations: 83.69 kB / 353.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.582e-05/0.1214, allocations: 8 kB / 353.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.261e-05/0.1214, allocations: 15.94 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.1215, allocations: 75.64 kB / 353.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.1217, allocations: 135 kB / 353.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005056/0.1222, allocations: 446.4 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1222, allocations: 0 / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1222, allocations: 0 / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.413e-06/0.1223, allocations: 0 / 354.2 MB, free: 236 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.000945/0.1232, allocations: 0.8205 MB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.1233, allocations: 8.031 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.279e-05/0.1233, allocations: 46.73 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.1234, allocations: 40.47 kB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004538/0.1239, allocations: 294.1 kB / 355.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.1239, allocations: 12.38 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.124, allocations: 12.31 kB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.1243, allocations: 169.7 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1244, allocations: 0 / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.1244, allocations: 12 kB / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.1244, allocations: 0 / 355.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.1246, allocations: 87.94 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007518/0.1254, allocations: 0.4964 MB / 356.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.1256, allocations: 130.5 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.1258, allocations: 108.9 kB / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.1258, allocations: 0 / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004628/0.1263, allocations: 242.6 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.1263, allocations: 0 / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000992/0.1273, allocations: 0.6222 MB / 357.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.1275, allocations: 199.8 kB / 357.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006932/0.1282, allocations: 0.56 MB / 358.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.1282, allocations: 33.7 kB / 358.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.305e-05/0.1283, allocations: 117.1 kB / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.1284, allocations: 31.61 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.1285, allocations: 97.41 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1287, allocations: 330.8 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1288, allocations: 83.95 kB / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.129, allocations: 97.67 kB / 358.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004792/0.1295, allocations: 438.7 kB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1295, allocations: 0 / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006825/0.1302, allocations: 0.5047 MB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1303, allocations: 155.3 kB / 359.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1303, allocations: 3.938 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1304, allocations: 0 / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.111e-05/0.1304, allocations: 0 / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1304, allocations: 8.031 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.1306, allocations: 15.98 kB / 360 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.1307, allocations: 101.3 kB / 360 MB, free: 9.938 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.0004051/0.1311, allocations: 404.1 kB / 360.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.342e-05/0.1312, allocations: 39.53 kB / 360.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.1313, allocations: 71.47 kB / 360.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1313, allocations: 0 / 360.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1313, allocations: 0 / 360.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1313, allocations: 4 kB / 360.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1325, allocations: 0.971 MB / 361.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1325, allocations: 0 / 361.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-06/0.1325, allocations: 0 / 361.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.1326, allocations: 3.984 kB / 361.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.1326, allocations: 16 kB / 361.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.1326, allocations: 3.938 kB / 361.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1326, allocations: 3.984 kB / 361.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008892/0.1335, allocations: 0.6711 MB / 362.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003263/0.1339, allocations: 252.4 kB / 362.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.086e-05/0.1339, allocations: 11.92 kB / 362.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1341, allocations: 20.12 kB / 362.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.1343, allocations: 55.94 kB / 362.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.956e-05/0.1344, allocations: 97.23 kB / 362.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005483/0.1349, allocations: 418.8 kB / 363.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1349, allocations: 0 / 363.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.1353, allocations: 56 kB / 363.1 MB, free: 6.676 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.001356/0.1367, allocations: 1.224 MB / 364.3 MB, free: 5.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006549/0.1373, allocations: 0.5321 MB / 364.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1373, allocations: 0 / 364.9 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.1377, allocations: 465 kB / 365.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008704/0.1386, allocations: 194.9 kB / 365.5 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.1427, allocations: 3.234 MB / 368.8 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1907/0.3334, allocations: 0.8175 MB / 369.6 MB, free: 25.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000157/0.3336, allocations: 15.88 kB / 369.6 MB, free: 25.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.3337, allocations: 45.3 kB / 369.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3337, allocations: 0.6875 kB / 369.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.3687, allocations: 9.176 MB / 378.8 MB, free: 23.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.769/8.137, allocations: 9 kB / 378.8 MB, free: 23.32 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