Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_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.0009998/0.001, allocations: 90.66 kB / 17.3 MB, free: 6.344 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.001075/0.001075, allocations: 184.4 kB / 18.21 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004867/0.0004868, allocations: 12 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 47.57 MB / 329.1 MB, free: 3.664 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001886/0.1033, allocations: 1.274 MB / 330.3 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1051, allocations: 0.9063 MB / 331.2 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.255e-05/0.1052, allocations: 3.938 kB / 331.2 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.97e-05/0.1053, allocations: 15.92 kB / 331.3 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.1054, allocations: 15.91 kB / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.1056, allocations: 51.91 kB / 331.3 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1058, allocations: 127.7 kB / 331.4 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.1059, allocations: 29.38 kB / 331.5 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006643/0.1066, allocations: 0.6317 MB / 332.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.1067, allocations: 83.62 kB / 332.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.1068, allocations: 4 kB / 332.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.155e-05/0.1068, allocations: 8 kB / 332.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1069, allocations: 75.62 kB / 332.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.1071, allocations: 148.8 kB / 332.4 MB, free: 280 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.1075, allocations: 446.5 kB / 332.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1075, allocations: 4 kB / 332.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1075, allocations: 0 / 332.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1075, allocations: 0 / 332.9 MB, free: 15.83 MB / 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.0007653/0.1083, allocations: 0.7284 MB / 333.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1084, allocations: 8.031 kB / 333.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.834e-05/0.1084, allocations: 38.75 kB / 333.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.659e-05/0.1085, allocations: 40.47 kB / 333.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/0.1088, allocations: 298.1 kB / 334 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1089, allocations: 12.38 kB / 334 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.1089, allocations: 12.38 kB / 334 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.1093, allocations: 173.5 kB / 334.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1093, allocations: 0 / 334.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.1093, allocations: 4 kB / 334.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1094, allocations: 0 / 334.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.1095, allocations: 87.89 kB / 334.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007499/0.1103, allocations: 0.4965 MB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.1105, allocations: 122.5 kB / 334.9 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.1107, allocations: 112.8 kB / 335 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.1108, allocations: 11.98 kB / 335 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.1112, allocations: 250.6 kB / 335.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.1112, allocations: 0 / 335.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001004/0.1122, allocations: 0.607 MB / 335.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.1123, allocations: 191.9 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006827/0.113, allocations: 0.5678 MB / 336.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1131, allocations: 37.64 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/0.1131, allocations: 113.1 kB / 336.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.1132, allocations: 31.61 kB / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.1133, allocations: 21.72 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1134, allocations: 338.8 kB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.1136, allocations: 80.09 kB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.1137, allocations: 101.6 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004157/0.1142, allocations: 442.3 kB / 337.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1142, allocations: 0 / 337.7 MB, free: 10.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000709/0.1149, allocations: 0.494 MB / 338.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.115, allocations: 155.1 kB / 338.4 MB, free: 9.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.115, allocations: 11.97 kB / 338.4 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1151, allocations: 64 / 338.4 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.242e-05/0.1151, allocations: 4 kB / 338.4 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1151, allocations: 0 / 338.4 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.1153, allocations: 23.92 kB / 338.4 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.1154, allocations: 105.2 kB / 338.5 MB, free: 9.699 MB / 286.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.0003951/0.1158, allocations: 388.1 kB / 338.9 MB, free: 9.277 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.1159, allocations: 43.53 kB / 338.9 MB, free: 9.234 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.116, allocations: 71.47 kB / 339 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.116, allocations: 4 kB / 339 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.116, allocations: 0 / 339 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1161, allocations: 3.938 kB / 339 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.1172, allocations: 0.9633 MB / 340 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1172, allocations: 0 / 340 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.1173, allocations: 3.984 kB / 340 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1173, allocations: 4 kB / 340 MB, free: 8.094 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.1173, allocations: 23.97 kB / 340 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.1173, allocations: 11.94 kB / 340 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1173, allocations: 0 / 340 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007965/0.1181, allocations: 0.6518 MB / 340.7 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.1185, allocations: 256.4 kB / 340.9 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.489e-05/0.1185, allocations: 12 kB / 340.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.1188, allocations: 19.88 kB / 341 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1189, allocations: 55.92 kB / 341 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.984e-05/0.119, allocations: 109.2 kB / 341.1 MB, free: 6.898 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004948/0.1195, allocations: 422.8 kB / 341.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1196, allocations: 0 / 341.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1199, allocations: 51.91 kB / 341.6 MB, free: 6.438 MB / 286.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.001323/0.1212, allocations: 1.228 MB / 342.8 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006246/0.1219, allocations: 0.5321 MB / 343.3 MB, free: 4.555 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1219, allocations: 0 / 343.3 MB, free: 4.555 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.1223, allocations: 461 kB / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008962/0.1232, allocations: 177.8 kB / 344 MB, free: 3.871 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/0.1272, allocations: 3.305 MB / 347.3 MB, free: 456 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.1277, allocations: 0.8185 MB / 348.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.281e-05/0.1278, allocations: 12.88 kB / 348.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.049e-05/0.1279, allocations: 39.42 kB / 348.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1279, allocations: 0 / 348.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.1486, allocations: 8.314 MB / 356.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002571/0.1489, allocations: 193.6 kB / 356.6 MB, free: 6.805 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.385, allocations: 0 / 356.6 MB, free: 6.805 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches