Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001827/0.001827, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.19 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003942/0.1056, allocations: 1.568 MB / 359.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1078, allocations: 0.8982 MB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.156e-05/0.1079, allocations: 0 / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.108, allocations: 15.86 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.1082, allocations: 15.81 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1086, allocations: 59.86 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.1089, allocations: 171.7 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1091, allocations: 21.39 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000755/0.1098, allocations: 0.6239 MB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.11, allocations: 83.62 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.1101, allocations: 12 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.252e-05/0.1102, allocations: 12 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.1103, allocations: 71.69 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.1105, allocations: 135 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.111, allocations: 450.4 kB / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.111, allocations: 0 / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1111, allocations: 0 / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.1111, allocations: 0 / 361.7 MB, free: 9.844 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.001117/0.1122, allocations: 0.8179 MB / 362.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.1123, allocations: 15.97 kB / 362.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.392e-05/0.1123, allocations: 42.73 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.888e-05/0.1124, allocations: 44.47 kB / 362.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.1128, allocations: 294.1 kB / 362.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.1128, allocations: 8.375 kB / 362.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.1129, allocations: 8.375 kB / 362.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.1133, allocations: 173.6 kB / 363.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1133, allocations: 0 / 363.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.1133, allocations: 12 kB / 363.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1134, allocations: 4 kB / 363.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.1136, allocations: 87.89 kB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007304/0.1143, allocations: 0.5003 MB / 363.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002343/0.1145, allocations: 126.5 kB / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.1148, allocations: 104.9 kB / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.1148, allocations: 0 / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004185/0.1152, allocations: 249.8 kB / 364.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.1152, allocations: 0 / 364.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001013/0.1162, allocations: 0.6187 MB / 364.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.1164, allocations: 191.9 kB / 365 MB, free: 6.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007035/0.1171, allocations: 0.5678 MB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.1171, allocations: 33.7 kB / 365.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.631e-05/0.1172, allocations: 109.1 kB / 365.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.703e-05/0.1173, allocations: 35.55 kB / 365.7 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.1174, allocations: 97.41 kB / 365.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1175, allocations: 330.8 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1177, allocations: 83.95 kB / 366.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1179, allocations: 100.2 kB / 366.3 MB, free: 4.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.1183, allocations: 442.7 kB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1183, allocations: 0 / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006664/0.119, allocations: 0.494 MB / 367.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-05/0.1191, allocations: 152.5 kB / 367.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1191, allocations: 0 / 367.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.1191, allocations: 4.109 kB / 367.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.903e-05/0.1191, allocations: 3.938 kB / 367.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.1191, allocations: 3.969 kB / 367.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.1193, allocations: 20 kB / 367.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-05/0.1194, allocations: 97.23 kB / 367.5 MB, free: 3.559 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.0003477/0.1197, allocations: 404 kB / 367.9 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.1198, allocations: 43.53 kB / 367.9 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.633e-05/0.1199, allocations: 67.48 kB / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1199, allocations: 0 / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1199, allocations: 0 / 368 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1199, allocations: 3.984 kB / 368 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.121, allocations: 0.9745 MB / 369 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1211, allocations: 3.938 kB / 369 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-06/0.1211, allocations: 7.938 kB / 369 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1211, allocations: 0 / 369 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.1211, allocations: 19.98 kB / 369 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1211, allocations: 4.062 kB / 369 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1211, allocations: 4 kB / 369 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.1219, allocations: 0.6635 MB / 369.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003404/0.1223, allocations: 252.4 kB / 369.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/0.1224, allocations: 11.94 kB / 369.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.1225, allocations: 19.92 kB / 370 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.1227, allocations: 55.94 kB / 370 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.1228, allocations: 101.2 kB / 370.1 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.1233, allocations: 418.8 kB / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1234, allocations: 3.938 kB / 370.5 MB, free: 340 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.1237, allocations: 52 kB / 370.6 MB, free: 288 kB / 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.1903/0.314, allocations: 1.222 MB / 371.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.3147, allocations: 0.5363 MB / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3147, allocations: 0 / 372.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.315, allocations: 467 kB / 372.8 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009068/0.316, allocations: 197.8 kB / 373 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.3199, allocations: 3.216 MB / 376.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.3203, allocations: 0.8226 MB / 377 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.719e-05/0.3204, allocations: 15.58 kB / 377 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.3204, allocations: 42.72 kB / 377.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3204, allocations: 0 / 377.1 MB, free: 16.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/0.3508, allocations: 9.188 MB / 386.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.418/8.769, allocations: 7.984 kB / 386.3 MB, free: 14.06 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches