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.001624/0.001624, allocations: 98.61 kB / 16.5 MB, free: 6.641 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.00188/0.00188, allocations: 195.8 kB / 17.42 MB, free: 6.066 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.376/1.376, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 52.27 kB / 300.1 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.121, allocations: 49.46 MB / 349.5 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003684/0.1247, allocations: 1.599 MB / 351.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.1268, allocations: 0.885 MB / 352 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1269, allocations: 4 kB / 352 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.1271, allocations: 11.92 kB / 352 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.1272, allocations: 23.84 kB / 352 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.1275, allocations: 49.91 kB / 352.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.1277, allocations: 127.7 kB / 352.2 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1278, allocations: 21.39 kB / 352.2 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007818/0.1286, allocations: 0.6356 MB / 352.9 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1288, allocations: 87.62 kB / 353 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.042e-05/0.1289, allocations: 8 kB / 353 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.1289, allocations: 4 kB / 353 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1291, allocations: 75.69 kB / 353 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1292, allocations: 135 kB / 353.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004031/0.1296, allocations: 446.4 kB / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1296, allocations: 0 / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1296, allocations: 0 / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1297, allocations: 0 / 353.6 MB, free: 384 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.001245/0.1309, allocations: 0.818 MB / 354.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.131, allocations: 8.031 kB / 354.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.916e-05/0.1311, allocations: 50.73 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1312, allocations: 44.45 kB / 354.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.1316, allocations: 294.1 kB / 354.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.1316, allocations: 12.31 kB / 354.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.1316, allocations: 12.38 kB / 354.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.1321, allocations: 177.5 kB / 355 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1321, allocations: 0 / 355 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1321, allocations: 4 kB / 355 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.1321, allocations: 0 / 355 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.1323, allocations: 83.95 kB / 355.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000961/0.1333, allocations: 0.5042 MB / 355.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.1336, allocations: 118.5 kB / 355.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.1338, allocations: 112.9 kB / 355.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.1338, allocations: 4 kB / 355.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.1344, allocations: 242.6 kB / 356.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.014e-06/0.1344, allocations: 0 / 356.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001065/0.1355, allocations: 0.6109 MB / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1356, allocations: 191.9 kB / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007603/0.1363, allocations: 0.5639 MB / 357.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.1364, allocations: 29.7 kB / 357.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.1365, allocations: 129 kB / 357.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/0.1365, allocations: 27.62 kB / 357.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.1367, allocations: 93.41 kB / 357.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1368, allocations: 334.8 kB / 358 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.137, allocations: 75.97 kB / 358.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.1372, allocations: 105.6 kB / 358.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.1375, allocations: 442.1 kB / 358.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1376, allocations: 0 / 358.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006624/0.1382, allocations: 0.4979 MB / 359.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.335e-05/0.1383, allocations: 152.5 kB / 359.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1383, allocations: 4 kB / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1384, allocations: 0 / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.712e-05/0.1384, allocations: 3.938 kB / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1384, allocations: 0 / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.1386, allocations: 15.98 kB / 359.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.1387, allocations: 105.3 kB / 359.4 MB, free: 10.09 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.0003851/0.1391, allocations: 400.1 kB / 359.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.1392, allocations: 43.53 kB / 359.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.1393, allocations: 71.47 kB / 359.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1393, allocations: 0 / 359.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1393, allocations: 0 / 359.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1393, allocations: 0 / 359.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1405, allocations: 0.9743 MB / 360.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1405, allocations: 4.125 kB / 360.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-06/0.1405, allocations: 4 kB / 360.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.1405, allocations: 3.984 kB / 360.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.558e-05/0.1406, allocations: 23.98 kB / 360.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.1406, allocations: 3.938 kB / 360.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.1406, allocations: 11.95 kB / 360.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.1414, allocations: 0.6556 MB / 361.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003473/0.1417, allocations: 248.4 kB / 361.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.879e-05/0.1418, allocations: 19.98 kB / 361.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.142, allocations: 23.88 kB / 361.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.1422, allocations: 55.92 kB / 361.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.1423, allocations: 101.2 kB / 362 MB, free: 7.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005244/0.1428, allocations: 418.8 kB / 362.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1428, allocations: 3.938 kB / 362.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.1432, allocations: 55.91 kB / 362.5 MB, free: 6.805 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.001214/0.1444, allocations: 1.22 MB / 363.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007191/0.1451, allocations: 0.5282 MB / 364.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1451, allocations: 0 / 364.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000414/0.1455, allocations: 461 kB / 364.7 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008142/0.1464, allocations: 182.2 kB / 364.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.1509, allocations: 3.296 MB / 368.2 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.1515, allocations: 0.8107 MB / 369 MB, free: 4 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.1928/0.3443, allocations: 11.83 kB / 369 MB, free: 25.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3445, allocations: 39.23 kB / 369 MB, free: 25.59 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3445, allocations: 1.344 kB / 369 MB, free: 25.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.371, allocations: 8.605 MB / 377.6 MB, free: 23.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.3712, allocations: 198.8 kB / 377.8 MB, free: 23.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.304, allocations: 1.188 kB / 377.8 MB, free: 23.44 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