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.001646/0.001646, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001987/0.001987, allocations: 196 kB / 18 MB, free: 5.105 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.586/1.586, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2581, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002859/0.261, allocations: 1.552 MB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.2628, allocations: 0.8653 MB / 402.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.363e-05/0.2629, allocations: 0 / 402.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.2631, allocations: 15.86 kB / 402.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.2632, allocations: 27.8 kB / 402.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.2635, allocations: 47.88 kB / 402.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.2637, allocations: 179.7 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.2638, allocations: 29.38 kB / 402.9 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006538/0.2645, allocations: 0.6317 MB / 403.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.2647, allocations: 83.69 kB / 403.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.398e-05/0.2647, allocations: 8 kB / 403.7 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.472e-05/0.2648, allocations: 12 kB / 403.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.892e-05/0.2649, allocations: 71.7 kB / 403.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.265, allocations: 131 kB / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.2654, allocations: 466.3 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2654, allocations: 4 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2654, allocations: 0 / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.2654, allocations: 0 / 404.3 MB, free: 4.723 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.0008705/0.2663, allocations: 0.8115 MB / 405.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.2664, allocations: 12.03 kB / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.2664, allocations: 38.75 kB / 405.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.132e-05/0.2665, allocations: 44.47 kB / 405.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.2668, allocations: 294.2 kB / 405.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.2669, allocations: 12.31 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.2669, allocations: 8.375 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.2673, allocations: 173.7 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.2673, allocations: 0 / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.2673, allocations: 8 kB / 405.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2673, allocations: 0 / 405.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.2675, allocations: 87.94 kB / 405.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008069/0.2683, allocations: 0.5003 MB / 406.3 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.2686, allocations: 126.5 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.2687, allocations: 116.8 kB / 406.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.2688, allocations: 0 / 406.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.2691, allocations: 241 kB / 406.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.2692, allocations: 0 / 406.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009189/0.2701, allocations: 0.6186 MB / 407.4 MB, free: 1.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.172e-05/0.2702, allocations: 199.8 kB / 407.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006289/0.2708, allocations: 0.5562 MB / 408.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.2709, allocations: 33.7 kB / 408.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.2709, allocations: 121 kB / 408.3 MB, free: 436 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.271, allocations: 23.72 kB / 408.3 MB, free: 412 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2711, allocations: 97.41 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2713, allocations: 334.8 kB / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.2714, allocations: 79.95 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.2716, allocations: 101.7 kB / 408.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.272, allocations: 434.6 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.272, allocations: 0 / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000657/0.2726, allocations: 0.5058 MB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.11e-05/0.2727, allocations: 152.5 kB / 410 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2728, allocations: 0 / 410 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2728, allocations: 0 / 410 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.014e-05/0.2728, allocations: 0 / 410 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.2728, allocations: 4.031 kB / 410 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.273, allocations: 23.89 kB / 410 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.2731, allocations: 105.3 kB / 410.1 MB, free: 14.44 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.0003846/0.2735, allocations: 400.1 kB / 410.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.2735, allocations: 39.53 kB / 410.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.2737, allocations: 75.45 kB / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2737, allocations: 0 / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2737, allocations: 0 / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2737, allocations: 0 / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.2748, allocations: 0.9674 MB / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2748, allocations: 4 kB / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.38e-06/0.2748, allocations: 0 / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2748, allocations: 0 / 411.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.2748, allocations: 19.98 kB / 411.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.2749, allocations: 3.938 kB / 411.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2749, allocations: 0 / 411.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007423/0.2756, allocations: 0.6697 MB / 412.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.276, allocations: 260.3 kB / 412.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.982e-05/0.276, allocations: 15.94 kB / 412.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.2762, allocations: 15.94 kB / 412.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.2763, allocations: 55.92 kB / 412.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.964e-05/0.2764, allocations: 101.2 kB / 412.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004429/0.2769, allocations: 418.8 kB / 413.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2769, allocations: 0 / 413.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.2772, allocations: 55.94 kB / 413.2 MB, free: 11.18 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.001024/0.2782, allocations: 1.216 MB / 414.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000561/0.2788, allocations: 0.5321 MB / 415 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2788, allocations: 0 / 415 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.2792, allocations: 461 kB / 415.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008183/0.28, allocations: 203.3 kB / 415.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.2835, allocations: 3.234 MB / 418.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.2839, allocations: 0.8182 MB / 419.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.23e-05/0.284, allocations: 16.84 kB / 419.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.2841, allocations: 47.42 kB / 419.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.2841, allocations: 4 kB / 419.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.584/3.868, allocations: 9.356 MB / 429.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.85/19.71, allocations: 7.875 kB / 429.1 MB, free: 10.95 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