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.001127/0.001127, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001155/0.001156, allocations: 198 kB / 18.07 MB, free: 5.41 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.459/1.459, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001159/0.00116, allocations: 43.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09466/0.09583, allocations: 46.63 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002926/0.0988, allocations: 1.617 MB / 328.3 MB, free: 3.168 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1007, allocations: 0.9218 MB / 329.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.1009, allocations: 0 / 329.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.101, allocations: 7.922 kB / 329.2 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.1011, allocations: 23.86 kB / 329.3 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.1014, allocations: 47.89 kB / 329.3 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.1016, allocations: 127.7 kB / 329.4 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.1018, allocations: 29.38 kB / 329.5 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000833/0.1026, allocations: 0.6356 MB / 330.1 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1028, allocations: 91.61 kB / 330.2 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.004e-05/0.1028, allocations: 8 kB / 330.2 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.415e-05/0.1029, allocations: 4 kB / 330.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.103, allocations: 75.69 kB / 330.3 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1032, allocations: 123 kB / 330.4 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00056/0.1038, allocations: 454.6 kB / 330.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1038, allocations: 4 kB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1038, allocations: 3.938 kB / 330.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1038, allocations: 0 / 330.8 MB, free: 0.6172 MB / 270.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.001038/0.1048, allocations: 0.806 MB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.1049, allocations: 12.03 kB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.105, allocations: 42.73 kB / 331.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.1051, allocations: 48.47 kB / 331.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.1055, allocations: 294.1 kB / 332 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1055, allocations: 4.375 kB / 332 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.1056, allocations: 12.38 kB / 332.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.106, allocations: 177.6 kB / 332.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.106, allocations: 0 / 332.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.106, allocations: 4 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.106, allocations: 4 kB / 332.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.1062, allocations: 87.89 kB / 332.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.1071, allocations: 0.4926 MB / 332.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.1073, allocations: 122.5 kB / 332.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.1075, allocations: 113 kB / 333 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.1075, allocations: 3.938 kB / 333 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004103/0.1079, allocations: 250.6 kB / 333.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 2.084e-06/0.1079, allocations: 4 kB / 333.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001025/0.109, allocations: 0.607 MB / 333.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000194/0.1092, allocations: 195.9 kB / 334.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009076/0.1101, allocations: 0.56 MB / 334.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1101, allocations: 33.7 kB / 334.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.1102, allocations: 121 kB / 334.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.947e-05/0.1103, allocations: 23.72 kB / 334.8 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.1104, allocations: 101.3 kB / 334.9 MB, free: 12.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1106, allocations: 338.8 kB / 335.3 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1108, allocations: 84.09 kB / 335.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.111, allocations: 101.6 kB / 335.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.1114, allocations: 426.6 kB / 335.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1114, allocations: 4 kB / 335.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000809/0.1122, allocations: 0.4953 MB / 336.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.1124, allocations: 152.5 kB / 336.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1124, allocations: 4.031 kB / 336.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1124, allocations: 0 / 336.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.548e-05/0.1124, allocations: 4 kB / 336.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1125, allocations: 3.938 kB / 336.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.1127, allocations: 19.98 kB / 336.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/0.1129, allocations: 105.1 kB / 336.6 MB, free: 10.34 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.00051/0.1134, allocations: 400.1 kB / 337 MB, free: 9.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-05/0.1134, allocations: 43.53 kB / 337.1 MB, free: 9.867 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.1136, allocations: 71.47 kB / 337.1 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1136, allocations: 4 kB / 337.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1136, allocations: 0 / 337.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1136, allocations: 0 / 337.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.1148, allocations: 0.9715 MB / 338.1 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1148, allocations: 3.984 kB / 338.1 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-06/0.1148, allocations: 3.984 kB / 338.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.1148, allocations: 4 kB / 338.1 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.1149, allocations: 12 kB / 338.1 MB, free: 8.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.351e-06/0.1149, allocations: 11.92 kB / 338.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1149, allocations: 4 kB / 338.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007806/0.1157, allocations: 0.6557 MB / 338.8 MB, free: 7.988 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003671/0.1161, allocations: 256.4 kB / 339.1 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.529e-05/0.1162, allocations: 12 kB / 339.1 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.1163, allocations: 11.94 kB / 339.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002811/0.1166, allocations: 59.92 kB / 339.1 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.975e-05/0.1167, allocations: 101.2 kB / 339.2 MB, free: 7.539 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005395/0.1173, allocations: 422.8 kB / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.1173, allocations: 0 / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003206/0.1176, allocations: 55.94 kB / 339.7 MB, free: 7.074 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.001221/0.1188, allocations: 1.216 MB / 340.9 MB, free: 5.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006246/0.1195, allocations: 0.5399 MB / 341.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1195, allocations: 0 / 341.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.1199, allocations: 465 kB / 341.9 MB, free: 4.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007583/0.1206, allocations: 169.8 kB / 342.1 MB, free: 4.516 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004292/0.1249, allocations: 3.308 MB / 345.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007019/0.1257, allocations: 0.8185 MB / 346.2 MB, free: 256 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.526e-05/0.1257, allocations: 12.86 kB / 346.2 MB, free: 244 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.1258, allocations: 43.42 kB / 346.3 MB, free: 200 kB / 286.1 MB Notification: Performance of SimCode: time 6.02e-07/0.1258, allocations: 0 / 346.3 MB, free: 200 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1122/0.238, allocations: 8.633 MB / 354.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002765/0.2383, allocations: 190.5 kB / 355.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.146, allocations: 0 / 355.1 MB, free: 7.102 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