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.001386/0.001386, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.001317/0.001317, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.41/1.41, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001799/0.001799, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09505, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002953/0.09804, allocations: 1.567 MB / 376.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.1, allocations: 0.9019 MB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.446e-05/0.1001, allocations: 4 kB / 377.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.632e-05/0.1003, allocations: 15.86 kB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.123e-05/0.1004, allocations: 19.8 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.1007, allocations: 55.88 kB / 377.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.1009, allocations: 171.7 kB / 377.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.101, allocations: 25.39 kB / 377.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006804/0.1017, allocations: 0.6239 MB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.1019, allocations: 83.61 kB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.102, allocations: 16 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.099e-05/0.102, allocations: 12 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.98e-05/0.1021, allocations: 67.77 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1023, allocations: 139 kB / 378.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.1028, allocations: 454 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1028, allocations: 0 / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1028, allocations: 0 / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.1028, allocations: 0 / 378.8 MB, free: 0.9258 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.0009543/0.1038, allocations: 0.8294 MB / 379.6 MB, free: 16 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1038, allocations: 12.02 kB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1825/0.2863, allocations: 39.69 kB / 379.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.2865, allocations: 43.03 kB / 379.7 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.2868, allocations: 295.6 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.2868, allocations: 9.375 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.2869, allocations: 10 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.2873, allocations: 167.9 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2873, allocations: 5.438 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.2873, allocations: 9.062 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2873, allocations: 1.797 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001805/0.2875, allocations: 88.75 kB / 380.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007203/0.2883, allocations: 0.4934 MB / 380.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.2885, allocations: 123.9 kB / 380.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.2887, allocations: 111.1 kB / 381 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.2887, allocations: 4.312 kB / 381 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004077/0.2891, allocations: 244.9 kB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.915e-06/0.2891, allocations: 0 / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001031/0.2902, allocations: 0.6087 MB / 381.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.2903, allocations: 198.1 kB / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007701/0.291, allocations: 0.5611 MB / 382.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.2911, allocations: 32.67 kB / 382.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.2911, allocations: 119.4 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.2912, allocations: 33.78 kB / 382.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2913, allocations: 102 kB / 382.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.664e-05/0.2914, allocations: 329 kB / 383.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.2916, allocations: 87.84 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.2918, allocations: 97.7 kB / 383.4 MB, free: 11.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.2921, allocations: 436.4 kB / 383.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2921, allocations: 0 / 383.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006697/0.2928, allocations: 0.5105 MB / 384.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.2929, allocations: 150.7 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2929, allocations: 0.875 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.2929, allocations: 3.875 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.698e-05/0.2929, allocations: 1.578 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.2929, allocations: 1.672 kB / 384.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.2931, allocations: 25.12 kB / 384.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.2932, allocations: 96.56 kB / 384.6 MB, free: 10.37 MB / 318.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.000318/0.2936, allocations: 412.5 kB / 385 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.179e-05/0.2936, allocations: 42.31 kB / 385 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.2937, allocations: 68.62 kB / 385.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2938, allocations: 1.219 kB / 385.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2938, allocations: 1.078 kB / 385.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.2938, allocations: 1.281 kB / 385.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.2948, allocations: 0.9744 MB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2948, allocations: 0 / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-06/0.2949, allocations: 1.375 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2949, allocations: 0.5156 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.2949, allocations: 18.84 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2949, allocations: 1.344 kB / 386.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2949, allocations: 3.938 kB / 386.1 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.2956, allocations: 0.661 MB / 386.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.2959, allocations: 257.2 kB / 387 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.738e-05/0.296, allocations: 8.5 kB / 387 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2962, allocations: 16.47 kB / 387 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.2963, allocations: 57.59 kB / 387.1 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.2965, allocations: 104.4 kB / 387.2 MB, free: 8.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004983/0.297, allocations: 423.5 kB / 387.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.297, allocations: 1.125 kB / 387.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.2973, allocations: 52.22 kB / 387.7 MB, free: 8.516 MB / 318.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.001046/0.2983, allocations: 1.222 MB / 388.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005872/0.2989, allocations: 0.5399 MB / 389.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.299, allocations: 4.062 kB / 389.4 MB, free: 7.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.2993, allocations: 464.1 kB / 389.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008941/0.3002, allocations: 193.2 kB / 390.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.3039, allocations: 3.238 MB / 393.3 MB, free: 4.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.3043, allocations: 0.8229 MB / 394.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3044, allocations: 16.33 kB / 394.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.3045, allocations: 41.5 kB / 394.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3045, allocations: 0 / 394.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03369/0.3382, allocations: 9.235 MB / 403.4 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.465, allocations: 1.094 kB / 403.4 MB, free: 0.7031 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches