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.001561/0.001561, allocations: 116.2 kB / 17.07 MB, free: 6 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.001811/0.001811, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.34/2.34, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4759/0.4772, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.005789/0.4831, allocations: 1.556 MB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003383/0.4865, allocations: 0.8672 MB / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.4867, allocations: 4 kB / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.4869, allocations: 11.86 kB / 402.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.4871, allocations: 31.78 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.4875, allocations: 43.89 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.488, allocations: 171.7 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.4882, allocations: 37.38 kB / 402.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.4893, allocations: 0.6278 MB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.4895, allocations: 83.62 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.4896, allocations: 12 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.4897, allocations: 12 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.4899, allocations: 75.69 kB / 403.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.4901, allocations: 135 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.4908, allocations: 462.3 kB / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.4909, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4909, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.378e-05/0.4909, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.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.001756/0.4927, allocations: 0.8193 MB / 405.2 MB, free: 3.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.869e-05/0.4928, allocations: 8.031 kB / 405.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.4929, allocations: 34.75 kB / 405.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.4931, allocations: 44.47 kB / 405.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.4938, allocations: 286.2 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.4938, allocations: 16.31 kB / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.59e-05/0.4939, allocations: 16.36 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006608/0.4946, allocations: 165.7 kB / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.4946, allocations: 0 / 405.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.696e-05/0.4947, allocations: 11.98 kB / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4947, allocations: 0 / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003127/0.4951, allocations: 83.95 kB / 405.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.4965, allocations: 0.4925 MB / 406.3 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.4969, allocations: 126.5 kB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003067/0.4972, allocations: 108.9 kB / 406.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.4973, allocations: 7.938 kB / 406.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006399/0.4979, allocations: 242.6 kB / 406.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.444e-06/0.4979, allocations: 0 / 406.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001584/0.4995, allocations: 0.6147 MB / 407.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.4997, allocations: 199.8 kB / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.5009, allocations: 0.5679 MB / 408.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.484e-05/0.501, allocations: 33.64 kB / 408.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.5012, allocations: 117.1 kB / 408.3 MB, free: 412 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.994e-05/0.5013, allocations: 23.66 kB / 408.3 MB, free: 388 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.5015, allocations: 101.4 kB / 408.4 MB, free: 280 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.5017, allocations: 334.8 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.5021, allocations: 83.95 kB / 408.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.5024, allocations: 97.67 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006846/0.5031, allocations: 433.6 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.5031, allocations: 0 / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00116/0.5043, allocations: 0.5058 MB / 409.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.5044, allocations: 152.5 kB / 410 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.5045, allocations: 3.938 kB / 410 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.613e-05/0.5045, allocations: 8.031 kB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.011e-05/0.5046, allocations: 0 / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.5046, allocations: 0 / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.5049, allocations: 19.89 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.5051, allocations: 105.2 kB / 410.1 MB, free: 14.41 MB / 334.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.0006561/0.5057, allocations: 396.2 kB / 410.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.5059, allocations: 47.52 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.5061, allocations: 75.45 kB / 410.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.5062, allocations: 0 / 410.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5062, allocations: 4 kB / 410.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.5062, allocations: 0 / 410.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.5082, allocations: 0.9591 MB / 411.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5082, allocations: 0 / 411.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-06/0.5082, allocations: 4 kB / 411.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5082, allocations: 0 / 411.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.542e-05/0.5083, allocations: 19.98 kB / 411.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.5083, allocations: 3.938 kB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5083, allocations: 0 / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.5096, allocations: 0.6635 MB / 412.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005536/0.5102, allocations: 260.3 kB / 412.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.5104, allocations: 12 kB / 412.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002761/0.5106, allocations: 15.92 kB / 412.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.5109, allocations: 59.88 kB / 412.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.5111, allocations: 97.23 kB / 412.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000884/0.512, allocations: 422.8 kB / 413.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.512, allocations: 4 kB / 413.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006188/0.5126, allocations: 51.94 kB / 413.2 MB, free: 11.16 MB / 334.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.001975/0.5146, allocations: 1.22 MB / 414.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.5158, allocations: 0.5321 MB / 415 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.5158, allocations: 0 / 415 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.5165, allocations: 461 kB / 415.4 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/0.5179, allocations: 207.6 kB / 415.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007464/0.5254, allocations: 3.234 MB / 418.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009801/0.5264, allocations: 0.826 MB / 419.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.5267, allocations: 12.88 kB / 419.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.5268, allocations: 43.42 kB / 419.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.963e-06/0.5268, allocations: 0 / 419.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04654/0.5734, allocations: 9.348 MB / 429.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.69, allocations: 8 kB / 429.1 MB, free: 10.94 MB / 350.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) "" Variables in the reference:time,Mux2x1.out Variables in the result:Input0.n,Input0.t[1],Input0.t[2],Input0.t[3],Input0.t[4],Input0.t[5],Input0.t[6],Input0.x[1],Input0.x[2],Input0.x[3],Input0.x[4],Input0.x[5],Input0.x[6],Input0.y,Input0.y0,Input1.n,Input1.t[1],Input1.t[2],Input1.t[3],Input1.t[4],Input1.t[5],Input1.t[6],Input1.x[1],Input1.x[2],Input1.x[3],Input1.x[4],Input1.x[5],Input1.x[6],Input1.y,Input1.y0,Mux2x1.in0,Mux2x1.in1,Mux2x1.out,Mux2x1.sel,Mux2x1.strength,Mux2x1.tHL,Mux2x1.tLH,Select.after,Select.before,Select.stepTime,Select.y,time