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.001263/0.001263, allocations: 102.5 kB / 16.62 MB, free: 6.812 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.001304/0.001304, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.371/1.371, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 54 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 49.44 MB / 349.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003422/0.1202, allocations: 1.618 MB / 351.3 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1222, allocations: 0.8537 MB / 352.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.632e-05/0.1223, allocations: 0 / 352.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1224, allocations: 7.922 kB / 352.2 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.1226, allocations: 15.88 kB / 352.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.1229, allocations: 51.94 kB / 352.2 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.1231, allocations: 171.6 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1233, allocations: 29.38 kB / 352.4 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006977/0.124, allocations: 0.6395 MB / 353.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1242, allocations: 99.61 kB / 353.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.092e-05/0.1242, allocations: 12 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.805e-05/0.1243, allocations: 12 kB / 353.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1244, allocations: 71.7 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1246, allocations: 135 kB / 353.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.1251, allocations: 454.4 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1251, allocations: 0 / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1251, allocations: 0 / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1251, allocations: 0 / 353.8 MB, free: 492 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.001237/0.1263, allocations: 0.8179 MB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.1264, allocations: 16.02 kB / 354.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.208e-05/0.1265, allocations: 46.73 kB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.1266, allocations: 40.47 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.127, allocations: 290.1 kB / 355 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.127, allocations: 12.38 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.1271, allocations: 8.375 kB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.1275, allocations: 177.5 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1275, allocations: 0 / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.1276, allocations: 11.94 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1276, allocations: 0 / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.1278, allocations: 87.95 kB / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.1288, allocations: 0.5003 MB / 355.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.129, allocations: 122.5 kB / 355.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.1293, allocations: 104.9 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.1293, allocations: 8 kB / 356.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005277/0.1298, allocations: 249.1 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.475e-06/0.1298, allocations: 0 / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001135/0.131, allocations: 0.607 MB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.1311, allocations: 195.9 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.132, allocations: 0.56 MB / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.416e-05/0.1321, allocations: 33.7 kB / 357.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1322, allocations: 121.1 kB / 357.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.065e-05/0.1322, allocations: 31.56 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.1324, allocations: 97.41 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1326, allocations: 330.8 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.1328, allocations: 83.95 kB / 358.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1329, allocations: 93.67 kB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.1334, allocations: 442.1 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1335, allocations: 0 / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008651/0.1343, allocations: 0.4979 MB / 359.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.1345, allocations: 155.5 kB / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.1345, allocations: 0 / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.1345, allocations: 4 kB / 359.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.16e-05/0.1346, allocations: 0 / 359.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1346, allocations: 0 / 359.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.1348, allocations: 19.98 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.135, allocations: 113.2 kB / 359.6 MB, free: 10.19 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.0005056/0.1355, allocations: 400.1 kB / 360 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.544e-05/0.1356, allocations: 43.53 kB / 360.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.1358, allocations: 75.45 kB / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1358, allocations: 0 / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1358, allocations: 0 / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1358, allocations: 0 / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.1372, allocations: 0.9633 MB / 361.1 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1372, allocations: 7.984 kB / 361.1 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.967e-06/0.1372, allocations: 3.938 kB / 361.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1372, allocations: 0 / 361.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.1373, allocations: 23.97 kB / 361.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.1373, allocations: 3.938 kB / 361.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1373, allocations: 3.938 kB / 361.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008769/0.1382, allocations: 0.6589 MB / 361.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.1385, allocations: 260.4 kB / 362.1 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.1386, allocations: 12 kB / 362.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1388, allocations: 23.88 kB / 362.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.139, allocations: 59.91 kB / 362.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.1391, allocations: 93.25 kB / 362.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005417/0.1396, allocations: 422.8 kB / 362.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1396, allocations: 0 / 362.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003432/0.14, allocations: 55.91 kB / 362.7 MB, free: 6.918 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.001279/0.1413, allocations: 1.228 MB / 364 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007495/0.142, allocations: 0.5321 MB / 364.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.142, allocations: 0 / 364.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000462/0.1425, allocations: 461 kB / 364.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009275/0.1435, allocations: 200.8 kB / 365.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.1481, allocations: 3.3 MB / 368.4 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004776/0.1486, allocations: 0.8182 MB / 369.2 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.219e-05/0.1487, allocations: 12.88 kB / 369.3 MB, free: 80 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.1488, allocations: 43.42 kB / 369.3 MB, free: 36 kB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1488, allocations: 4 kB / 369.3 MB, free: 32 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1981/0.3469, allocations: 8.835 MB / 378.1 MB, free: 24.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.3471, allocations: 194.7 kB / 378.3 MB, free: 24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.321, allocations: 0 / 378.3 MB, free: 24 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